diff options
Diffstat (limited to 'keyboards/amj40/keymaps')
-rwxr-xr-x | keyboards/amj40/keymaps/default/keymap.c | 143 | ||||
-rwxr-xr-x | keyboards/amj40/keymaps/default/readme.md | 11 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/default_625u_space/keymap.c | 41 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c | 40 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c | 38 | ||||
-rwxr-xr-x | keyboards/amj40/keymaps/fabian/keymap.c | 224 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/fabian/rules.mk | 19 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/jetpacktuxedo/config.h | 1 | ||||
-rwxr-xr-x | keyboards/amj40/keymaps/jetpacktuxedo/keymap.c | 43 | ||||
-rwxr-xr-x | keyboards/amj40/keymaps/jetpacktuxedo/readme.md | 55 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/jetpacktuxedo/rules.mk | 19 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/build.sh | 42 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/config.h | 10 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/keymap.c | 93 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/readme.md | 11 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/rules.mk | 19 | ||||
-rw-r--r-- | keyboards/amj40/keymaps/myee/updatemerge.sh | 4 |
17 files changed, 813 insertions, 0 deletions
diff --git a/keyboards/amj40/keymaps/default/keymap.c b/keyboards/amj40/keymaps/default/keymap.c new file mode 100755 index 000000000..658b4b3c5 --- /dev/null +++ b/keyboards/amj40/keymaps/default/keymap.c | |||
@@ -0,0 +1,143 @@ | |||
1 | /* Copyright 2017 Fabian Topfstedt | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | enum layer_names { | ||
20 | _QWERTY, | ||
21 | _LOWER, | ||
22 | _RAISE, | ||
23 | _ADJUST, | ||
24 | }; | ||
25 | |||
26 | enum custom_keycodes { | ||
27 | QWERTY = SAFE_RANGE, | ||
28 | LOWER, | ||
29 | RAISE, | ||
30 | ADJUST, | ||
31 | }; | ||
32 | |||
33 | #define LT1_SPC LT(_LOWER,KC_SPC) | ||
34 | #define LT2_SPC LT(_RAISE,KC_SPC) | ||
35 | #define LT3_LGU LT(_ADJUST,KC_LGUI) | ||
36 | |||
37 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
38 | /* Default Layer | ||
39 | * ,-----------------------------------------------. | ||
40 | * |Esc| Q | W | E | R | T | Y | U | I | O | P |BS | | ||
41 | * |-----------------------------------------------| | ||
42 | * |Tab | A | S | D | F | G | H | J | K | L |Enter | | ||
43 | * |-----------------------------------------------| | ||
44 | * | LSft | Z | X | C | V | B | N | M | , | . |/? | | ||
45 | * |-----------------------------------------------| | ||
46 | * |LCtl|GUI|LAlt|Spc/Fn0 | Spc/Fn1 |Fn2 |Alt|RCtl| | ||
47 | * `-----------------------------------------------' | ||
48 | */ | ||
49 | [_QWERTY] = LAYOUT( | ||
50 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
51 | KC_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
52 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
53 | KC_LCTL, KC_LGUI, KC_LALT, LT1_SPC, LT2_SPC, LT3_LGU, KC_RALT, KC_RCTL | ||
54 | ), | ||
55 | |||
56 | /* Function Layer 1 HHKB style | ||
57 | * ,-----------------------------------------------. | ||
58 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) |BS | | ||
59 | * |-----------------------------------------------| | ||
60 | * | F1 |F2 |F3 |F4 |F5 |F6 | _ | + | { | } | Pipe | | ||
61 | * |-----------------------------------------------| | ||
62 | * | F7 |F8 |F9 |F10|F11|F12| ~ | | |BL±|BL+ |BL-| | ||
63 | * |-----------------------------------------------| | ||
64 | * | | | | | Left |Down|Up |Rght| | ||
65 | * `-----------------------------------------------' | ||
66 | */ | ||
67 | [_LOWER] = LAYOUT( | ||
68 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
69 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
70 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, S(KC_NUHS), S(KC_NUBS), BL_TOGG, BL_INC, BL_DEC, | ||
71 | _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
72 | ), | ||
73 | |||
74 | /* Function Layer 1 HHKB style | ||
75 | * ,-----------------------------------------------. | ||
76 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |BS | | ||
77 | * |-----------------------------------------------| | ||
78 | * | F1 |F2 |F3 |F4 |F5 |F6 | - | = | [ | ] | \ | | ||
79 | * |-----------------------------------------------| | ||
80 | * | F7 |F8 |F9 |F10|F11|F12| # | \ | | |Del| | ||
81 | * |-----------------------------------------------| | ||
82 | * | | | | | | | |RGB±| | ||
83 | * `-----------------------------------------------' | ||
84 | */ | ||
85 | [_RAISE] = LAYOUT( | ||
86 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
87 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
88 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, KC_DEL, | ||
89 | _______, _______, _______, _______, _______, _______, _______, RGB_TOG | ||
90 | ), | ||
91 | |||
92 | /* Function Layer 1 HHKB style | ||
93 | * ,-----------------------------------------------. | ||
94 | * | |RST| | | | | | | | | |Del| | ||
95 | * |-----------------------------------------------| | ||
96 | * | | | |Au1|Au0|AGN|AGS| | | | | | ||
97 | * |-----------------------------------------------| | ||
98 | * | | | |RTg|RMd|RH+|RH-|RS+|RS-|RV+ |RV-| | ||
99 | * |-----------------------------------------------| | ||
100 | * |SLP | | | | | | |RTg | | ||
101 | * `-----------------------------------------------' | ||
102 | */ | ||
103 | [_ADJUST] = LAYOUT( | ||
104 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, | ||
105 | _______, _______, _______, AU_ON, AU_OFF, AG_NORM, AG_SWAP, _______, _______, _______, _______, | ||
106 | _______, _______, _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, | ||
107 | KC_SLEP, _______, _______, _______, _______, _______, _______, _______ | ||
108 | ), | ||
109 | }; | ||
110 | |||
111 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
112 | switch (keycode) { | ||
113 | case LOWER: | ||
114 | if (record->event.pressed) { | ||
115 | layer_on(_LOWER); | ||
116 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
117 | } else { | ||
118 | layer_off(_LOWER); | ||
119 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
120 | } | ||
121 | return false; | ||
122 | break; | ||
123 | case RAISE: | ||
124 | if (record->event.pressed) { | ||
125 | layer_on(_RAISE); | ||
126 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
127 | } else { | ||
128 | layer_off(_RAISE); | ||
129 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
130 | } | ||
131 | return false; | ||
132 | break; | ||
133 | case ADJUST: | ||
134 | if (record->event.pressed) { | ||
135 | layer_on(_ADJUST); | ||
136 | } else { | ||
137 | layer_off(_ADJUST); | ||
138 | } | ||
139 | return false; | ||
140 | break; | ||
141 | } | ||
142 | return true; | ||
143 | } | ||
diff --git a/keyboards/amj40/keymaps/default/readme.md b/keyboards/amj40/keymaps/default/readme.md new file mode 100755 index 000000000..2659292ae --- /dev/null +++ b/keyboards/amj40/keymaps/default/readme.md | |||
@@ -0,0 +1,11 @@ | |||
1 | AMJ40 Default Layout | ||
2 | ===================== | ||
3 | |||
4 | ##Quantum MK Firmware | ||
5 | For the full Quantum feature list, see the parent readme.md. | ||
6 | |||
7 | # Features | ||
8 | * Based on a combination of the original AMJ40 keymap from the TMK firmware as well as the Planck Ortholinear keyboard's "Lower," "Raise," and "Adjust" layers. | ||
9 | * View the keymap.c file to understand they layout of the keymap. | ||
10 | * Has keys to toggle both the switch LEDs and underglow LEDs. | ||
11 | |||
diff --git a/keyboards/amj40/keymaps/default_625u_space/keymap.c b/keyboards/amj40/keymaps/default_625u_space/keymap.c new file mode 100644 index 000000000..f5b33ad84 --- /dev/null +++ b/keyboards/amj40/keymaps/default_625u_space/keymap.c | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Copyright 2021 James Young (@noroadsleft) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | #define LT1_SCL LT(1, KC_SCLN) | ||
20 | #define LT2_QUO LT(2, KC_QUOT) | ||
21 | |||
22 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
23 | [0] = LAYOUT_625u_space( | ||
24 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
25 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, | ||
26 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
27 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, LT1_SCL, LT2_QUO | ||
28 | ), | ||
29 | [1] = LAYOUT_625u_space( | ||
30 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
31 | KC_TAB, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, KC_INS, | ||
32 | _______, KC_SCLN, KC_QUOT, KC_COLN, KC_DQUO, KC_TILD, KC_LABK, KC_RABK, KC_LBRC, KC_RBRC, _______, | ||
33 | _______, _______, _______, _______, _______, _______ | ||
34 | ), | ||
35 | [2] = LAYOUT_625u_space( | ||
36 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
37 | RESET, KC_PWR, _______, _______, KC_PSCR, KC_PAUS, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, | ||
38 | KC_UP, KC_MINS, KC_EQL, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, KC_LPRN, KC_RPRN, _______, | ||
39 | KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, _______ | ||
40 | ), | ||
41 | }; | ||
diff --git a/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c b/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c new file mode 100644 index 000000000..fe9988469 --- /dev/null +++ b/keyboards/amj40/keymaps/default_ortho_275u_space/keymap.c | |||
@@ -0,0 +1,40 @@ | |||
1 | /* Copyright 2021 James Young (@noroadsleft) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | #define LT2_SLS LT(2,KC_SLSH) | ||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | [0] = LAYOUT_ortho_275u_space( | ||
23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
24 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
25 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_UP, KC_ENT, | ||
26 | KC_CAPS, KC_LCTL, KC_LALT, KC_LGUI, MO(1), KC_SPC, LT2_SLS, KC_LEFT, KC_DOWN, KC_RGHT | ||
27 | ), | ||
28 | [1] = LAYOUT_ortho_275u_space( | ||
29 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
30 | _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
31 | _______, _______, _______, _______, _______, _______, _______, _______, KC_SLSH, KC_QUES, KC_UP, _______, | ||
32 | _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_RGHT | ||
33 | ), | ||
34 | [2] = LAYOUT_ortho_275u_space( | ||
35 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
36 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
37 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, | ||
38 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
39 | ), | ||
40 | }; | ||
diff --git a/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c b/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c new file mode 100644 index 000000000..527390cd1 --- /dev/null +++ b/keyboards/amj40/keymaps/default_ortho_600u_space/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2021 James Young (@noroadsleft) | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT_ortho_600u_space( | ||
21 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
22 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_A, KC_ENT, | ||
23 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, | ||
24 | KC_LCTL, KC_LGUI, MO(1), KC_SPC, MO(2), KC_BSLS, KC_B | ||
25 | ), | ||
26 | [1] = LAYOUT_ortho_600u_space( | ||
27 | KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_BSPC, | ||
28 | KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_UP, _______, | ||
29 | KC_UNDS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_SCLN, KC_QUOT, KC_GRV, _______, KC_LEFT, KC_DOWN, KC_RGHT, | ||
30 | _______, _______, _______, _______, _______, _______, _______ | ||
31 | ), | ||
32 | [2] = LAYOUT_ortho_600u_space( | ||
33 | RESET, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, _______, _______, | ||
34 | _______, _______, _______, _______, _______, _______, BL_TOGG, BL_DEC, BL_INC, BL_STEP, _______, _______, | ||
35 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
36 | _______, _______, _______, _______, _______, _______, _______ | ||
37 | ), | ||
38 | }; | ||
diff --git a/keyboards/amj40/keymaps/fabian/keymap.c b/keyboards/amj40/keymaps/fabian/keymap.c new file mode 100755 index 000000000..a35337a4e --- /dev/null +++ b/keyboards/amj40/keymaps/fabian/keymap.c | |||
@@ -0,0 +1,224 @@ | |||
1 | /* Copyright 2015-2017 Jack Humbert | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | #include QMK_KEYBOARD_H | ||
17 | |||
18 | // Set the custom keymap | ||
19 | #undef LAYOUT | ||
20 | #define LAYOUT( \ | ||
21 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ | ||
22 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ | ||
23 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ | ||
24 | k30, k31, k32, k33, k34, k35, k39, k3a, k3b \ | ||
25 | ) { \ | ||
26 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b}, \ | ||
27 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b}, \ | ||
28 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b}, \ | ||
29 | {k30, k31, k32, k33, k34, k35, XXX, XXX, XXX, k39, k3a, k3b} \ | ||
30 | } | ||
31 | |||
32 | extern keymap_config_t keymap_config; | ||
33 | |||
34 | enum custom_layers { | ||
35 | _QWERTY, | ||
36 | _COLEMAK, | ||
37 | _DVORAK, | ||
38 | _LOWER, | ||
39 | _RAISE, | ||
40 | _ADJUST | ||
41 | }; | ||
42 | |||
43 | enum custom_keycodes { | ||
44 | QWERTY = SAFE_RANGE, | ||
45 | COLEMAK, | ||
46 | DVORAK, | ||
47 | LOWER, | ||
48 | RAISE, | ||
49 | BACKLIT, | ||
50 | EXT_PLV | ||
51 | }; | ||
52 | |||
53 | #define CTL_ESC CTL_T(KC_ESC) // Tap for Escape, hold for Control | ||
54 | #define HPR_TAB ALL_T(KC_TAB) // Tap for Tab, hold for Hyper (Super+Ctrl+Alt+Shift) | ||
55 | #define MEH_GRV MEH_T(KC_GRV) // Tap for Backtick, hold for Meh (Ctrl+Alt+Shift) | ||
56 | #define SFT_BSP SFT_T(KC_BSPC) // Tap for Backspace, hold for Shift | ||
57 | #define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift | ||
58 | #define SFT_SPC SFT_T(KC_SPC) // Tap for Space, hold for Shift | ||
59 | #define UMLAUT RALT(KC_U) // Combine Alt and U | ||
60 | |||
61 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
62 | /* Qwerty | ||
63 | * ,-----------------------------------------------------------------------------------. | ||
64 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
65 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
66 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
67 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
68 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
69 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
70 | * | Ctrl | Meh | Alt | GUI | Lower and Space | Raise | GUI |AltGr | Ctrl | | ||
71 | * `-----------------------------------------------------------------------------------' | ||
72 | */ | ||
73 | [_QWERTY] = LAYOUT( \ | ||
74 | HPR_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \ | ||
75 | CTL_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \ | ||
76 | SFT_BSP, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, \ | ||
77 | KC_LCTL, MEH_GRV, KC_LALT, KC_LGUI, LT(_LOWER, KC_SPC), RAISE, KC_RGUI, KC_RALT, KC_RCTL \ | ||
78 | ), | ||
79 | |||
80 | /* Colemak | ||
81 | * ,-----------------------------------------------------------------------------------. | ||
82 | * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Bksp | | ||
83 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
84 | * | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
85 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
86 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
87 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
88 | * | Ctrl | Meh | Alt | GUI | Lower and Space | Raise | GUI |AltGr | Ctrl | | ||
89 | * `-----------------------------------------------------------------------------------' | ||
90 | */ | ||
91 | [_COLEMAK] = LAYOUT( \ | ||
92 | HPR_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC, \ | ||
93 | CTL_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, \ | ||
94 | SFT_BSP, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT, \ | ||
95 | KC_LCTL, MEH_GRV, KC_LALT, KC_LGUI, LT(_LOWER, KC_SPC), RAISE, KC_RGUI, KC_RALT, KC_RCTL \ | ||
96 | ), | ||
97 | |||
98 | /* Dvorak | ||
99 | * ,-----------------------------------------------------------------------------------. | ||
100 | * | Tab | " | , | . | P | Y | F | G | C | R | L | Bksp | | ||
101 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
102 | * | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
103 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
104 | * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
105 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
106 | * | Ctrl | Meh | Alt | GUI | Lower and Space | Raise | GUI |AltGr | Ctrl | | ||
107 | * `-----------------------------------------------------------------------------------' | ||
108 | */ | ||
109 | [_DVORAK] = LAYOUT( \ | ||
110 | HPR_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC, \ | ||
111 | CTL_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, \ | ||
112 | SFT_BSP, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, SFT_ENT, \ | ||
113 | KC_LCTL, MEH_GRV, KC_LALT, KC_LGUI, LT(_LOWER, KC_SPC), RAISE, KC_RGUI, KC_RALT, KC_RCTL \ | ||
114 | ), | ||
115 | |||
116 | /* Lower | ||
117 | * ,-----------------------------------------------------------------------------------. | ||
118 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
119 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
120 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
121 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
122 | * | | F7 | F8 | F9 | F10 | F11 | F12 | MS L | MS D |MS U | MS R |MS Btn| | ||
123 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
124 | * | | | | | | Next | Vol- | Vol+ | Play | | ||
125 | * `-----------------------------------------------------------------------------------' | ||
126 | */ | ||
127 | [_LOWER] = LAYOUT( \ | ||
128 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \ | ||
129 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \ | ||
130 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_BTN1, \ | ||
131 | _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
132 | ), | ||
133 | |||
134 | /* Raise | ||
135 | * ,-----------------------------------------------------------------------------------. | ||
136 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
137 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
138 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
139 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
140 | * | | F7 | F8 | F9 | F10 | F11 | F12 | Left | Down | Up | Rght |MS_BN2| | ||
141 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
142 | * | | | | | | Next | Vol- | Vol+ | Play | | ||
143 | * `-----------------------------------------------------------------------------------' | ||
144 | */ | ||
145 | [_RAISE] = LAYOUT( \ | ||
146 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \ | ||
147 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \ | ||
148 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_BTN2, \ | ||
149 | _______, _______, _______, _______, _______, _______, KC_VOLD, KC_VOLU, KC_MPLY \ | ||
150 | ), | ||
151 | |||
152 | /* Adjust (Lower + Raise) | ||
153 | * ,-----------------------------------------------------------------------------------. | ||
154 | * | | Reset| | | | | | | | | Reset| Del | | ||
155 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
156 | * | | | |Aud on|Audoff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
157 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
158 | * | |Voice-|Voice+|Mus on|Musoff|MIDIon|MIDIof| | | | | | | ||
159 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
160 | * | | | | | | | | | | | ||
161 | * `-----------------------------------------------------------------------------------' | ||
162 | */ | ||
163 | [_ADJUST] = LAYOUT( \ | ||
164 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, RESET, KC_DEL, \ | ||
165 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, \ | ||
166 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, _______, _______, _______, _______, _______, \ | ||
167 | _______, _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
168 | ) | ||
169 | }; | ||
170 | |||
171 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
172 | switch (keycode) { | ||
173 | case QWERTY: | ||
174 | if (record->event.pressed) { | ||
175 | set_single_persistent_default_layer(_QWERTY); | ||
176 | } | ||
177 | return false; | ||
178 | break; | ||
179 | case COLEMAK: | ||
180 | if (record->event.pressed) { | ||
181 | set_single_persistent_default_layer(_COLEMAK); | ||
182 | } | ||
183 | return false; | ||
184 | break; | ||
185 | case DVORAK: | ||
186 | if (record->event.pressed) { | ||
187 | set_single_persistent_default_layer(_DVORAK); | ||
188 | } | ||
189 | return false; | ||
190 | break; | ||
191 | case LOWER: | ||
192 | if (record->event.pressed) { | ||
193 | layer_on(_LOWER); | ||
194 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
195 | } else { | ||
196 | layer_off(_LOWER); | ||
197 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
198 | } | ||
199 | return false; | ||
200 | break; | ||
201 | case RAISE: | ||
202 | if (record->event.pressed) { | ||
203 | layer_on(_RAISE); | ||
204 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
205 | } else { | ||
206 | layer_off(_RAISE); | ||
207 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
208 | } | ||
209 | return false; | ||
210 | break; | ||
211 | case BACKLIT: | ||
212 | if (record->event.pressed) { | ||
213 | register_code(KC_RSFT); | ||
214 | #ifdef BACKLIGHT_ENABLE | ||
215 | backlight_step(); | ||
216 | #endif | ||
217 | } else { | ||
218 | unregister_code(KC_RSFT); | ||
219 | } | ||
220 | return false; | ||
221 | break; | ||
222 | } | ||
223 | return true; | ||
224 | } | ||
diff --git a/keyboards/amj40/keymaps/fabian/rules.mk b/keyboards/amj40/keymaps/fabian/rules.mk new file mode 100644 index 000000000..59a2cb09a --- /dev/null +++ b/keyboards/amj40/keymaps/fabian/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # Build Options | ||
2 | # change to "no" to disable the options, or define them in the Makefile in | ||
3 | # the appropriate keymap folder that will get included automatically | ||
4 | # | ||
5 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
12 | MIDI_ENABLE = no # MIDI controls | ||
13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
14 | UNICODE_ENABLE = no # Unicode | ||
15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
17 | |||
18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
diff --git a/keyboards/amj40/keymaps/jetpacktuxedo/config.h b/keyboards/amj40/keymaps/jetpacktuxedo/config.h new file mode 100644 index 000000000..731183320 --- /dev/null +++ b/keyboards/amj40/keymaps/jetpacktuxedo/config.h | |||
@@ -0,0 +1 @@ | |||
#define PERMISSIVE_HOLD | |||
diff --git a/keyboards/amj40/keymaps/jetpacktuxedo/keymap.c b/keyboards/amj40/keymaps/jetpacktuxedo/keymap.c new file mode 100755 index 000000000..caf6700bc --- /dev/null +++ b/keyboards/amj40/keymaps/jetpacktuxedo/keymap.c | |||
@@ -0,0 +1,43 @@ | |||
1 | #include QMK_KEYBOARD_H | ||
2 | |||
3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
4 | // Default Layer | ||
5 | [0] = LAYOUT( \ | ||
6 | KC_GESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,\ | ||
7 | LT(2, KC_TAB), KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, LT(2, KC_ENT),\ | ||
8 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, MT(MOD_RSFT, KC_SLSH),\ | ||
9 | KC_LCTL, KC_LGUI, KC_LALT, LT(1, KC_SPC), LT(1, KC_SPC), KC_RALT, MO(3), KC_RCTL \ | ||
10 | ), | ||
11 | |||
12 | // Number Layer | ||
13 | [1] = LAYOUT( \ | ||
14 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, \ | ||
15 | KC_TRNS, KC_MINS, KC_EQL, KC_SCLN, KC_QUOT, KC_TRNS, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_TRNS, \ | ||
16 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LBRC, KC_RBRC, MT(MOD_RSFT, KC_BSLS), \ | ||
17 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS\ | ||
18 | ), | ||
19 | |||
20 | // Shifted Layer | ||
21 | [2] = LAYOUT( \ | ||
22 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL,\ | ||
23 | KC_TRNS, KC_UNDS, KC_PLUS, KC_COLN, KC_DQUO, KC_TRNS, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_TRNS, \ | ||
24 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_LCBR, KC_RCBR, KC_PIPE, \ | ||
25 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS\ | ||
26 | ), | ||
27 | |||
28 | // Fkey Layer | ||
29 | [3] = LAYOUT( \ | ||
30 | KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, RESET,\ | ||
31 | KC_TRNS, KC_F11, KC_F12, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ | ||
33 | KC_TRNS, TG(4), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS\ | ||
34 | ), | ||
35 | |||
36 | // Gaming Layer | ||
37 | [4] = LAYOUT( \ | ||
38 | KC_ESC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WH_U, KC_BTN1, KC_MS_U, KC_BTN2, KC_TRNS, KC_TRNS,\ | ||
39 | KC_TAB, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_WH_D, KC_MS_L, KC_MS_D, KC_MS_R, KC_TRNS,\ | ||
40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,\ | ||
41 | KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS\ | ||
42 | ), | ||
43 | }; | ||
diff --git a/keyboards/amj40/keymaps/jetpacktuxedo/readme.md b/keyboards/amj40/keymaps/jetpacktuxedo/readme.md new file mode 100755 index 000000000..64ae16c7e --- /dev/null +++ b/keyboards/amj40/keymaps/jetpacktuxedo/readme.md | |||
@@ -0,0 +1,55 @@ | |||
1 | Jetpacktuxedo's AMJ40 layout | ||
2 | ===================== | ||
3 | |||
4 | This is based heavily on my minivan layout, with most difference stemming from the different widths between the minivan and the AMJ40.  | ||
5 | |||
6 | ## Base Layer (0) | ||
7 | |||
8 | The base layer is pretty simple, straight qwerty layout where available. Both spacebars go to layer 1 when held. `tab` is `tab` when pressed and `fn2` when held, `enter` is the same. `GESC` is `esc` when used alone, but `~` when shifted. `/` is `/` when tapped but `rshift` when held. | ||
9 | ``` | ||
10 | |GESC| Q | W | E | R | T | Y | U | I | O | P |BSPC| | ||
11 | | TAB | A | S | D | F | G | H | J | K | L | ENTER | | ||
12 | |LSHIFT | Z | X | C | V | B | N | M | , | . | / | | ||
13 | |LCTRL|LWIN|LALT | SPACE | SPACE |RALT |FN 3|RCTRL | | ||
14 | ``` | ||
15 | |||
16 | ## Number Layer (1) | ||
17 | |||
18 | Numbers are set up just like on my minivan layout, but symbols are a bit different because the AMJ40 is one key narrower than the minivan and also lacks dedicated arrows. Decided to go with `hjkl` arrows, which takes some getting used to. `;` is on a layer now because of the narrowness I mentioned before, and it (along with `-`, `=`, and `'`) moves to the right hand to leave room for the `hjkl` arrows. `delete` on `backspace`, `[` and `]` on `<` and `>`, and `\` on `/` are all stolen straight from my minivan layout. | ||
19 | ``` | ||
20 | | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |DEL | | ||
21 | | | - | = | ; | ' | | ← | ↓ | ↑ | → | | | ||
22 | | | | | | | | | | [ | ] | \ | | ||
23 | | | | | | | | | | | ||
24 | ``` | ||
25 | |||
26 | ## Shifted Layer (2) | ||
27 | |||
28 | I don't want to be using two key combos constantly, so I also added this symbol layer that is basically shift+numeric layer. Also has nav keys on top of where arrows sit on the previous layer | ||
29 | ``` | ||
30 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) |DEL | | ||
31 | | | _ | + | : | " | |HOME|PGDN|PGUP|END | | | ||
32 | | | | | | | | | | { | } | | | | ||
33 | | | | | | | | | | | ||
34 | ``` | ||
35 | |||
36 | ## Fkey Layer (3) | ||
37 | |||
38 | Honestly, I use this more for jumping to my gaming layer and for reset than I use it for Fkeys. Lol. Hitting the left windows key while in this layer locks the gaming layer listed below | ||
39 | ``` | ||
40 | | | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 |F10 |RSET| | ||
41 | | |F11 |F12 | | | | | | | | | | ||
42 | | | | | | | | | | | | | | ||
43 | | |FN 4| | | | | | | | ||
44 | ``` | ||
45 | |||
46 | ## "Gaming" Layer (4) | ||
47 | |||
48 | Based on the "gaming" layer on my minivan that I mostly just use for mouse keys. To toggle this back off you hit the right windows key (to go to layer 3) and then the left windows key again. | ||
49 | ``` | ||
50 | |ESC | | | | | |MWUP|MLCK|M UP|MRCK| | | | ||
51 | | TAB | | | | | |MWDN|M L |M DN|M R | | | ||
52 | | | | | | | | | | | | | | ||
53 | | | | | SPACE | | | | | | ||
54 | ``` | ||
55 | |||
diff --git a/keyboards/amj40/keymaps/jetpacktuxedo/rules.mk b/keyboards/amj40/keymaps/jetpacktuxedo/rules.mk new file mode 100644 index 000000000..780d48a43 --- /dev/null +++ b/keyboards/amj40/keymaps/jetpacktuxedo/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # Build Options | ||
2 | # change to "no" to disable the options, or define them in the Makefile in | ||
3 | # the appropriate keymap folder that will get included automatically | ||
4 | # | ||
5 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
6 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
9 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
12 | MIDI_ENABLE = no # MIDI controls | ||
13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
14 | UNICODE_ENABLE = no # Unicode | ||
15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
16 | RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight. | ||
17 | |||
18 | # Do not enable SLEEP_LED_ENABLE. It uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
diff --git a/keyboards/amj40/keymaps/myee/build.sh b/keyboards/amj40/keymaps/myee/build.sh new file mode 100644 index 000000000..6b4b4568f --- /dev/null +++ b/keyboards/amj40/keymaps/myee/build.sh | |||
@@ -0,0 +1,42 @@ | |||
1 | #!/bin/bash | ||
2 | # adjust for cpu | ||
3 | # -j 16 gave best result on a hyperthreaded quad core core i7 | ||
4 | |||
5 | LIMIT=10 | ||
6 | THREADS="-j 16" | ||
7 | KMAP=iso_split_rshift | ||
8 | |||
9 | echo "We need sudo later" | ||
10 | sudo ls 2>&1 /dev/null | ||
11 | |||
12 | function wait_bootloader { | ||
13 | echo "Waiting for Bootloader..." | ||
14 | local STARTTIME=$(date +"%s") | ||
15 | local REMIND=0 | ||
16 | local EXEC=dfu-programmer | ||
17 | local TARGET=atmega32u4 | ||
18 | while true | ||
19 | do | ||
20 | sudo $EXEC $TARGET get > /dev/null 2>&1 | ||
21 | [ $? -eq 0 ] && break | ||
22 | ENDTIME=$(date +"%s") | ||
23 | DURATION=$(($ENDTIME-$STARTTIME)) | ||
24 | if [ $REMIND -eq 0 -a $DURATION -gt $LIMIT ] | ||
25 | then | ||
26 | echo "Did you forget to press the reset button?" | ||
27 | REMIND=1 | ||
28 | fi | ||
29 | sleep 1 | ||
30 | done | ||
31 | } | ||
32 | make clean | ||
33 | make KEYMAP=${KMAP} ${THREADS} | ||
34 | if [[ $? -eq 0 ]] | ||
35 | then | ||
36 | echo "please trigger flashing!" | ||
37 | wait_bootloader | ||
38 | sudo make KEYMAP=${KMAP} dfu ${THREADS} | ||
39 | else | ||
40 | echo "make failed" | ||
41 | exit 77 | ||
42 | fi | ||
diff --git a/keyboards/amj40/keymaps/myee/config.h b/keyboards/amj40/keymaps/myee/config.h new file mode 100644 index 000000000..8e6c4dfa4 --- /dev/null +++ b/keyboards/amj40/keymaps/myee/config.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef CONFIG_USER_H | ||
2 | #define CONFIG_USER_H | ||
3 | #include "../../config.h" | ||
4 | |||
5 | #define TAPPING_TERM 25 | ||
6 | #define RETRO_TAPPING | ||
7 | #define PERMISSIVE_HOLD | ||
8 | |||
9 | |||
10 | #endif \ No newline at end of file | ||
diff --git a/keyboards/amj40/keymaps/myee/keymap.c b/keyboards/amj40/keymaps/myee/keymap.c new file mode 100644 index 000000000..ec8cdd87d --- /dev/null +++ b/keyboards/amj40/keymaps/myee/keymap.c | |||
@@ -0,0 +1,93 @@ | |||
1 | |||
2 | |||
3 | |||
4 | #include QMK_KEYBOARD_H | ||
5 | |||
6 | // Keymap myee | ||
7 | // Each layer gets a name for readability, which is then used in the keymap matrix below. | ||
8 | // The underscores don't mean anything - you can have a layer called STUFF or any other name. | ||
9 | // Layer names don't all need to be of the same length, obviously, and you can also skip them | ||
10 | // entirely and just use numbers. | ||
11 | #define _QWERTY 0 | ||
12 | #define _LOWER 1 | ||
13 | #define _RAISE 2 | ||
14 | #define _ADJUST 3 | ||
15 | |||
16 | #define LOW_SPC LT(_LOWER, KC_SPC) | ||
17 | #define RSE_SPC LT(_RAISE, KC_SPC) | ||
18 | #define ADJ_TAB LT(ADJUST, KC_TAB) | ||
19 | |||
20 | enum custom_keycodes { | ||
21 | QWERTY = SAFE_RANGE, | ||
22 | LOWER, | ||
23 | RAISE, | ||
24 | ADJUST, | ||
25 | }; | ||
26 | |||
27 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
28 | |||
29 | [_QWERTY] = LAYOUT( \ | ||
30 | KC_ESC, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,\ | ||
31 | ADJ_TAB, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT, \ | ||
32 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, \ | ||
33 | KC_LCTL, KC_LGUI,KC_LALT, LOW_SPC, RSE_SPC, KC_RGUI,KC_RALT, KC_RCTL \ | ||
34 | ), | ||
35 | |||
36 | [_LOWER] = LAYOUT( \ | ||
37 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_UP, KC_MINS, KC_EQL, KC_DEL, \ | ||
38 | _______, _______, KC_ASTR, KC_LBRC, KC_RBRC, KC_QUOT, KC_DQUO, KC_LEFT, KC_DOWN, KC_RGHT, KC_BSLS, \ | ||
39 | _______, _______, _______, KC_LPRN, KC_RPRN, KC_HOME, KC_PGUP, KC_PGDN, KC_END, _______, _______, \ | ||
40 | _______, _______, _______, _______, _______, _______, _______, _______ \ | ||
41 | ), | ||
42 | |||
43 | [_RAISE] = LAYOUT( \ | ||
44 | KC_GRV, KC_LPRN, KC_RPRN, KC_DQUO, KC_QUOT, KC_SCLN, KC_COLON,KC_UNDS, KC_PLUS, _______, _______, KC_BSPC, \ | ||
45 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, \ | ||
46 | _______, _______, _______, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, _______, \ | ||
47 | _______, _______, _______, _______, _______, _______, BL_INC, BL_DEC \ | ||
48 | ), | ||
49 | |||
50 | [_ADJUST] = LAYOUT( \ | ||
51 | _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \ | ||
52 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
53 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \ | ||
54 | KC_SYSTEM_SLEEP, _______, _______, _______, _______, _______, _______, _______ \ | ||
55 | ), | ||
56 | |||
57 | }; | ||
58 | |||
59 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
60 | |||
61 | switch (keycode) { | ||
62 | |||
63 | case LOWER: | ||
64 | if (record->event.pressed) { | ||
65 | layer_on(_LOWER); | ||
66 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
67 | } else { | ||
68 | layer_off(_LOWER); | ||
69 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
70 | } | ||
71 | return false; | ||
72 | break; | ||
73 | case RAISE: | ||
74 | if (record->event.pressed) { | ||
75 | layer_on(_RAISE); | ||
76 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
77 | } else { | ||
78 | layer_off(_RAISE); | ||
79 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
80 | } | ||
81 | return false; | ||
82 | break; | ||
83 | case ADJUST: | ||
84 | if (record->event.pressed) { | ||
85 | layer_on(_ADJUST); | ||
86 | } else { | ||
87 | layer_off(_ADJUST); | ||
88 | } | ||
89 | return false; | ||
90 | break; | ||
91 | } | ||
92 | return true; | ||
93 | } | ||
diff --git a/keyboards/amj40/keymaps/myee/readme.md b/keyboards/amj40/keymaps/myee/readme.md new file mode 100644 index 000000000..2659292ae --- /dev/null +++ b/keyboards/amj40/keymaps/myee/readme.md | |||
@@ -0,0 +1,11 @@ | |||
1 | AMJ40 Default Layout | ||
2 | ===================== | ||
3 | |||
4 | ##Quantum MK Firmware | ||
5 | For the full Quantum feature list, see the parent readme.md. | ||
6 | |||
7 | # Features | ||
8 | * Based on a combination of the original AMJ40 keymap from the TMK firmware as well as the Planck Ortholinear keyboard's "Lower," "Raise," and "Adjust" layers. | ||
9 | * View the keymap.c file to understand they layout of the keymap. | ||
10 | * Has keys to toggle both the switch LEDs and underglow LEDs. | ||
11 | |||
diff --git a/keyboards/amj40/keymaps/myee/rules.mk b/keyboards/amj40/keymaps/myee/rules.mk new file mode 100644 index 000000000..b8cc8b42c --- /dev/null +++ b/keyboards/amj40/keymaps/myee/rules.mk | |||
@@ -0,0 +1,19 @@ | |||
1 | # Build Options | ||
2 | # change to "no" to disable the options, or define them in the Makefile in | ||
3 | # the appropriate keymap folder that will get included automatically | ||
4 | # | ||
5 | BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite | ||
6 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
7 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
8 | CONSOLE_ENABLE = no # Console for debug(+400) | ||
9 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
10 | NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
11 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
12 | MIDI_ENABLE = no # MIDI controls | ||
13 | AUDIO_ENABLE = no # Audio output on port C6 | ||
14 | UNICODE_ENABLE = no # Unicode | ||
15 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
16 | RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. | ||
17 | |||
18 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
19 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
diff --git a/keyboards/amj40/keymaps/myee/updatemerge.sh b/keyboards/amj40/keymaps/myee/updatemerge.sh new file mode 100644 index 000000000..da5457e19 --- /dev/null +++ b/keyboards/amj40/keymaps/myee/updatemerge.sh | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/bash | ||
2 | git checkout amj60 # gets you on branch amj60 | ||
3 | git fetch origin # gets you up to date with origin | ||
4 | git merge origin/master | ||