summaryrefslogtreecommitdiff
path: root/keyboards/gherkin/keymaps/wanleg/keymap.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2018-06-12 10:59:35 -0400
committerJack Humbert <jack.humb@gmail.com>2018-06-12 10:59:35 -0400
commit998ddbb122c9d3e2a77bd4e88c881b225ca0d569 (patch)
treeca91ff7ad3c4866555d1e623fe9ea05276397e1c /keyboards/gherkin/keymaps/wanleg/keymap.c
parentc0095710a7c7e9bd94aa9f4dd814dc28d718c731 (diff)
parent06487daaddf923d635e8a528d1eb644b875a73f6 (diff)
Merge branch 'master' of github.com:qmk/qmk_firmware into hf/shinydox
Diffstat (limited to 'keyboards/gherkin/keymaps/wanleg/keymap.c')
-rw-r--r--keyboards/gherkin/keymaps/wanleg/keymap.c135
1 files changed, 66 insertions, 69 deletions
diff --git a/keyboards/gherkin/keymaps/wanleg/keymap.c b/keyboards/gherkin/keymaps/wanleg/keymap.c
index 46b3b8c713..95cabe133f 100644
--- a/keyboards/gherkin/keymaps/wanleg/keymap.c
+++ b/keyboards/gherkin/keymaps/wanleg/keymap.c
@@ -13,7 +13,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "gherkin.h"
+#include QMK_KEYBOARD_H
// Each layer gets a name for readability, which is then used in the keymap matrix below.
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
@@ -24,6 +24,9 @@
#define NUM 2
#define ETC 3
+// Readability keycodes
+#define _______ KC_TRNS
+
/////////////// TAP DANCE SECTION START ///////////////
//Tap Dance Declarations (list of my tap dance configurations)
@@ -146,76 +149,70 @@ qk_tap_dance_action_t tap_dance_actions[] = {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- /* Qwerty
- * .-----------------------------------------------------------------------------------------.
- * | Q//ESC | W | E | R | T | Y | U | I | O | P |
- * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
- * | A | S | D | F | G | H | J | K | L | ENTER |
- * | | | | | | | | | |SFThold |
- * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
- * | Z | X | C | V/NUM | B/ETC | N | M/DIR | ,/GUI | ./ALT | BKSC |
- * | SFThold| | | | | | | | |CTRLhold|
- * '-----------------------------------------------------------------------------------------'
- */
+ /* Qwerty
+ * .-----------------------------------------------------------------------------------------.
+ * | Q//ESC | W | E | R | T | Y | U | I | O | P |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | A | S | D | F | G | H | J | K | L | ENTER |
+ * | | | | | | | | | |SFThold |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | Z | X | C | V/NUM | B/ETC | N | M/DIR | ,/GUI | ./ALT | BKSC |
+ * | SFThold| | | | | | | | |CTRLhold|
+ * '-----------------------------------------------------------------------------------------'
+ */
+ [_QW] = LAYOUT_ortho_3x10( /* Qwerty*/
+ TD(TD_Q_ESC), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
+ KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SFT_T(KC_SPC),
+ SFT_T(KC_Z), KC_X, KC_C, LT(NUM, KC_V), LT(ETC, KC_B), KC_N, LT(DIR, KC_M), GUI_T(KC_COMM), ALT_T(KC_DOT), CTL_T(KC_BSPC)
+ ),
- [_QW] = KEYMAP( /* Qwerty*/
- TD(TD_Q_ESC), KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P,
- KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, SFT_T(KC_SPC),
- SFT_T(KC_Z), KC_X, KC_C, LT(NUM, KC_V), LT(ETC, KC_B), KC_N, LT(DIR, KC_M), GUI_T(KC_COMM), ALT_T(KC_DOT), CTL_T(KC_BSPC)
+ /*
+ * Directional Modifiers
+ * .-----------------------------------------------------------------------------------------.
+ * | TAB | up | | INS | CTRL | SHIFT | PgUp | HOME | - | = |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | left | down | right | PrScr | SHIFT | CTRL | PgDn | END | [ | ] |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | P-Brk | | | | | | | RGUI | ALT | / |
+ * '-----------------------------------------------------------------------------------------'
+ */
+ [DIR] = LAYOUT_ortho_3x10( /* Directional Modifiers */
+ KC_TAB, KC_UP, _______, KC_INS, KC_LCTL, KC_RSFT, KC_PGUP, KC_HOME, KC_MINS, KC_EQL,
+ KC_LEFT, KC_DOWN, KC_RGHT, KC_PSCR, KC_LSFT, KC_RCTL, KC_PGDN, KC_END, KC_LBRC, KC_RBRC,
+ KC_PAUS, _______, _______, _______, _______, _______, _______, KC_RGUI, KC_LALT, KC_SLSH
),
+ /*
+ * Numbers
+ * .-----------------------------------------------------------------------------------------.
+ * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | F11 | F12 | | | | ENTER | SHIFT | GUI | ./ALT | BKSC |
+ * | | | | | | | | | |CTRLhold|
+ * '-----------------------------------------------------------------------------------------'
+ */
+ [NUM] = LAYOUT_ortho_3x10 ( /* Numbers */
+ KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10,
+ KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0,
+ KC_F11, KC_F12, _______, _______, _______, KC_ENT, KC_RSFT, KC_RGUI, ALT_T(KC_DOT), CTL_T(KC_BSPC)
+ ),
+
+ /*
+ * ETC
+ * .-----------------------------------------------------------------------------------------.
+ * | ` | mUP | | | RESET | SHIFT | mUp | mDown | | \ |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | mLeft | mDown | mRight | | SHIFT | mBtn3 | mBtn1 | mBtn2 | ; | ' |
+ * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
+ * | Sft//Cp| | | | | C-A-D | | | ALT | DEL |
+ * '-----------------------------------------------------------------------------------------'
+ */
+ [ETC] = LAYOUT_ortho_3x10( /* ETC */
+ KC_GRV, KC_MS_U, _______, _______, RESET, KC_RSFT, KC_WH_U, KC_WH_D, _______, KC_BSLS,
+ KC_MS_L, KC_MS_D, KC_MS_R, _______, KC_LSFT, KC_BTN3, KC_BTN1, KC_BTN2, KC_SCLN, KC_QUOT,
+ TD(TD_SFT_CAPS), _______, _______, _______, _______, LALT(LCTL(KC_DEL)), _______, _______, KC_LALT, KC_DEL
+ ),
-//
-///*
-// * Directional Modifiers
-// * .-----------------------------------------------------------------------------------------.
-// * | TAB | up | | INS | CTRL | SHIFT | PgUp | HOME | - | = |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | left | down | right | PrScr | SHIFT | CTRL | PgDn | END | [ | ] |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | P-Brk | | | | | | | RGUI | ALT | / |
-// * '-----------------------------------------------------------------------------------------'
-// */
-//
-[DIR] = KEYMAP( /* Directional Modifiers */
- KC_TAB, KC_UP, KC_TRNS, KC_INS, KC_LCTL, KC_RSFT, KC_PGUP, KC_HOME, KC_MINS, KC_EQL ,
- KC_LEFT, KC_DOWN, KC_RGHT, KC_PSCR, KC_LSFT, KC_RCTL, KC_PGDN, KC_END, KC_LBRC, KC_RBRC ,
- KC_PAUS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_RGUI, KC_LALT, KC_SLSH
-),
-//
-// /*
-// * Numbers
-// * .-----------------------------------------------------------------------------------------.
-// * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | F11 | F12 | | | | ENTER | SHIFT | GUI | ./ALT | BKSC |
-// * | | | | | | | | | |CTRLhold|
-// * '-----------------------------------------------------------------------------------------'
-// */
-//
-[NUM] = KEYMAP ( /* Numbers */
- KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10 ,
- KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0 ,
- KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_ENT, KC_RSFT, KC_RGUI, ALT_T(KC_DOT), CTL_T(KC_BSPC)
-),
-//
-//
-// /*
-// * ETC
-// * .-----------------------------------------------------------------------------------------.
-// * | ` | mUP | | | | SHIFT | mUp | mDown | | \ |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | mLeft | mDown | mRight | | SHIFT | | mBtn1 | mBtn2 | ; | ' |
-// * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
-// * | Sft//Cp| | | | | C-A-D | | | ALT | DEL |
-// * '-----------------------------------------------------------------------------------------'
-// */
-//
-[ETC] = KEYMAP( /* ETC */
- KC_GRV, KC_MS_U, _______, _______, _______, KC_RSFT, KC_WH_U, KC_WH_D, _______, KC_BSLS ,
- KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS, KC_LSFT, KC_TRNS, KC_BTN1, KC_BTN2, KC_SCLN, KC_QUOT ,
- TD(TD_SFT_CAPS), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, LALT(LCTL(KC_DEL)), KC_TRNS, KC_TRNS, KC_LALT, KC_DEL
- ),
};