diff options
Diffstat (limited to 'keyboards/launchpad/keymaps/default/keymap.c')
-rw-r--r-- | keyboards/launchpad/keymaps/default/keymap.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/keyboards/launchpad/keymaps/default/keymap.c b/keyboards/launchpad/keymaps/default/keymap.c new file mode 100644 index 000000000..67103576d --- /dev/null +++ b/keyboards/launchpad/keymaps/default/keymap.c | |||
@@ -0,0 +1,66 @@ | |||
1 | // Below layout is based upon /u/That-Canadian's planck layout | ||
2 | #include "launchpad.h" | ||
3 | #include "action_layer.h" | ||
4 | #include "eeconfig.h" | ||
5 | |||
6 | extern keymap_config_t keymap_config; | ||
7 | |||
8 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
9 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
10 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
11 | // entirely and just use numbers. | ||
12 | #define _QWERTY 0 | ||
13 | |||
14 | #define _FUNC 15 | ||
15 | |||
16 | // Fillers to make layering more clear | ||
17 | #define _______ KC_TRNS | ||
18 | #define XXXXXXX KC_NO | ||
19 | |||
20 | // Defines for task manager and such | ||
21 | #define CALTDEL LCTL(LALT(KC_DEL)) | ||
22 | #define TSKMGR LCTL(LSFT(KC_ESC)) | ||
23 | |||
24 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
25 | |||
26 | /* Qwerty | ||
27 | * ,-------------. | ||
28 | * | 1 | 2 | | ||
29 | * |------+------| | ||
30 | * | 3 | 4 | | ||
31 | * |------+------| | ||
32 | * | 5 | 6 | | ||
33 | * |------+------| | ||
34 | * | FUNC | 8 | | ||
35 | * `-------------' | ||
36 | */ | ||
37 | [_QWERTY] = LAYOUT( \ | ||
38 | KC_1, KC_2, \ | ||
39 | KC_3, KC_4, \ | ||
40 | KC_5, KC_6, \ | ||
41 | MO(_FUNC), KC_8 \ | ||
42 | ), | ||
43 | |||
44 | /* Function | ||
45 | * ,-------------. | ||
46 | * | Q |CALDEL| | ||
47 | * |------+------| | ||
48 | * | A |TSKMGR| | ||
49 | * |------+------| | ||
50 | * | Z | X | | ||
51 | * |------+------| | ||
52 | * | | C | | ||
53 | * `-------------' | ||
54 | */ | ||
55 | [_FUNC] = LAYOUT( \ | ||
56 | KC_Q, CALTDEL, \ | ||
57 | KC_A, TSKMGR, \ | ||
58 | KC_Z, KC_X, \ | ||
59 | _______, KC_C \ | ||
60 | ) | ||
61 | |||
62 | }; | ||
63 | |||
64 | void matrix_init_user(void) { | ||
65 | |||
66 | } | ||