diff options
| author | Stephen Tudor <smt@smt.io> | 2017-02-09 15:37:23 -0500 |
|---|---|---|
| committer | Stephen Tudor <smt@smt.io> | 2017-02-12 12:46:24 -0500 |
| commit | b6730285b4a8316765dad59fe3e9a383589694ab (patch) | |
| tree | a0e26a0c27e8afdf940ac3ea6b839bb431c90065 | |
| parent | d537120eab339c3cafd7fae2e62565f2a37cc176 (diff) | |
| download | qmk_firmware-b6730285b4a8316765dad59fe3e9a383589694ab.tar.gz qmk_firmware-b6730285b4a8316765dad59fe3e9a383589694ab.zip | |
Add smt keymap for tv44 (MiniVan)
| -rw-r--r-- | keyboards/tv44/keymaps/smt/Makefile | 21 | ||||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/config.h | 36 | ||||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/keyboard-layout-minivan.png | bin | 0 -> 66567 bytes | |||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/keymap.c | 232 | ||||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/readme.md | 126 |
5 files changed, 415 insertions, 0 deletions
diff --git a/keyboards/tv44/keymaps/smt/Makefile b/keyboards/tv44/keymaps/smt/Makefile new file mode 100644 index 000000000..f4671a9d1 --- /dev/null +++ b/keyboards/tv44/keymaps/smt/Makefile | |||
| @@ -0,0 +1,21 @@ | |||
| 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 # Virtual DIP switch configuration(+1000) | ||
| 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 = no # 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. Do not enable this with audio at the same time. | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | |||
| 19 | ifndef QUANTUM_DIR | ||
| 20 | include ../../../../Makefile | ||
| 21 | endif \ No newline at end of file | ||
diff --git a/keyboards/tv44/keymaps/smt/config.h b/keyboards/tv44/keymaps/smt/config.h new file mode 100644 index 000000000..f8f0a5078 --- /dev/null +++ b/keyboards/tv44/keymaps/smt/config.h | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | #ifndef CONFIG_USER_H | ||
| 2 | #define CONFIG_USER_H | ||
| 3 | |||
| 4 | #include "../../config.h" | ||
| 5 | |||
| 6 | /** | ||
| 7 | *TV44 keymap definition macro | ||
| 8 | */ | ||
| 9 | #define KEYMAP_TV44( \ | ||
| 10 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, \ | ||
| 11 | K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, K24, \ | ||
| 12 | K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, K36, \ | ||
| 13 | K37, K38, K39, K40, K41, K42, K43, K44 \ | ||
| 14 | ) { \ | ||
| 15 | { K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, }, \ | ||
| 16 | { K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, K24, }, \ | ||
| 17 | { K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, K36, }, \ | ||
| 18 | { K37, K38, K39, K40, KC_NO, KC_NO, KC_NO, K41, K42, K43, KC_NO, K44 } \ | ||
| 19 | } | ||
| 20 | |||
| 21 | /** | ||
| 22 | *TV45 keymap definition macro (arrows layout) | ||
| 23 | */ | ||
| 24 | #define KEYMAP_TV45( \ | ||
| 25 | K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, \ | ||
| 26 | K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, K24, \ | ||
| 27 | K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, K36, \ | ||
| 28 | K37, K38, K39, K40, K41, K42, K43, K44, K45 \ | ||
| 29 | ) { \ | ||
| 30 | { K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, }, \ | ||
| 31 | { K13, K14, K15, K16, K17, K18, K19, K20, K21, K22, K23, K24, }, \ | ||
| 32 | { K25, K26, K27, K28, K29, K30, K31, K32, K33, K34, K35, K36, }, \ | ||
| 33 | { K37, K38, K39, K40, KC_NO, KC_NO, KC_NO, K41, K42, K43, K44, K45 } \ | ||
| 34 | } | ||
| 35 | |||
| 36 | #endif | ||
diff --git a/keyboards/tv44/keymaps/smt/keyboard-layout-minivan.png b/keyboards/tv44/keymaps/smt/keyboard-layout-minivan.png new file mode 100644 index 000000000..2dca67fb6 --- /dev/null +++ b/keyboards/tv44/keymaps/smt/keyboard-layout-minivan.png | |||
| Binary files differ | |||
diff --git a/keyboards/tv44/keymaps/smt/keymap.c b/keyboards/tv44/keymaps/smt/keymap.c new file mode 100644 index 000000000..de5ce03e2 --- /dev/null +++ b/keyboards/tv44/keymaps/smt/keymap.c | |||
| @@ -0,0 +1,232 @@ | |||
| 1 | #include "tv44.h" | ||
| 2 | #include "action_layer.h" | ||
| 3 | #include "eeconfig.h" | ||
| 4 | |||
| 5 | extern keymap_config_t keymap_config; | ||
| 6 | |||
| 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 _COLEMAK 1 | ||
| 13 | #define _DVORAK 2 | ||
| 14 | #define _LOWER 3 | ||
| 15 | #define _RAISE 4 | ||
| 16 | #define _ADJUST 16 | ||
| 17 | |||
| 18 | // Keycodes | ||
| 19 | enum planck_keycodes { | ||
| 20 | QWERTY = SAFE_RANGE, | ||
| 21 | COLEMAK, | ||
| 22 | DVORAK, | ||
| 23 | LOWER, | ||
| 24 | RAISE, | ||
| 25 | BACKLIT | ||
| 26 | }; | ||
| 27 | |||
| 28 | // Fillers to make layering more clear | ||
| 29 | #define _______ KC_TRNS | ||
| 30 | #define XXXXXXX KC_NO | ||
| 31 | |||
| 32 | // Custom macros | ||
| 33 | #define CTL_ESC CTL_T(KC_ESC) // Tap for Esc, hold for Ctrl | ||
| 34 | #define SFT_ENT SFT_T(KC_ENT) // Tap for Enter, hold for Shift | ||
| 35 | #define HPR_TAB ALL_T(KC_TAB) // Tap for Tab, hold for Hyper | ||
| 36 | #define ALT_GRV ALT_T(KC_GRV) // Tap for Backtick, hold for Alt | ||
| 37 | |||
| 38 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 39 | |||
| 40 | /* Qwerty | ||
| 41 | * | ||
| 42 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 43 | * |Hyper/Tab| Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 44 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 45 | * | Ctrl/Esc | A | S | D | F | G | H | J | K | L | ; | ' | | ||
| 46 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 47 | * | Shift | Z | X | C | V | B | N | M | , | . | / |Sft/Ent| | ||
| 48 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 49 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 50 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 51 | */ | ||
| 52 | [_QWERTY] = KEYMAP_TV45( | ||
| 53 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 54 | HPR_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC , | ||
| 55 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 56 | CTL_ESC , KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT , | ||
| 57 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 58 | KC_LSFT , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT , | ||
| 59 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 60 | ALT_GRV , KC_LGUI , LOWER , KC_SPC , KC_SPC , RAISE , KC_RGUI, KC_RALT, KC_RCTL ), | ||
| 61 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 62 | |||
| 63 | /* Colemak | ||
| 64 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 65 | * |Hyper/Tab| Q | W | F | P | G | J | L | U | Y | ; | Bksp | | ||
| 66 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 67 | * | Ctrl/Esc | A | R | S | T | D | H | N | E | I | O | ' | | ||
| 68 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 69 | * | Shift | Z | X | C | V | B | K | M | , | . | / |Sft/Ent| | ||
| 70 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 71 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 72 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 73 | */ | ||
| 74 | [_COLEMAK] = KEYMAP_TV45( | ||
| 75 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 76 | HPR_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_BSPC , | ||
| 77 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 78 | CTL_ESC , KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT , | ||
| 79 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 80 | KC_LSFT , KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, SFT_ENT , | ||
| 81 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 82 | ALT_GRV , KC_LGUI , LOWER , KC_SPC , KC_SPC , RAISE , KC_RGUI, KC_RALT, KC_RCTL ), | ||
| 83 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 84 | |||
| 85 | /* Dvorak | ||
| 86 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 87 | * |Hyper/Tab| ' | , | . | P | Y | F | G | C | R | L | Bksp | | ||
| 88 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 89 | * | Ctrl/Esc | A | O | E | U | I | D | H | T | N | S | - | | ||
| 90 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 91 | * | Shift | ; | Q | J | K | X | B | M | W | V | Z |Sft/Ent| | ||
| 92 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 93 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 94 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 95 | */ | ||
| 96 | [_DVORAK] = KEYMAP_TV45( | ||
| 97 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 98 | HPR_TAB,KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_BSPC , | ||
| 99 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 100 | CTL_ESC , KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_MINS , | ||
| 101 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 102 | KC_LSFT , KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, SFT_ENT , | ||
| 103 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 104 | ALT_GRV , KC_LGUI , LOWER , KC_SPC , KC_SPC , RAISE , KC_RGUI, KC_RALT, KC_RCTL ), | ||
| 105 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 106 | |||
| 107 | /* Lower | ||
| 108 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 109 | * | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 110 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 111 | * | $ | 4 | 5 | 6 | . | + | * | 4 | 5 | 6 | . | PageUp | | ||
| 112 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 113 | * | = | 7 | 8 | 9 | 0 | - | / | 1 | 2 | 3 | Up |PageDn | | ||
| 114 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 115 | * | Brite | | | Home | End | | Left | Down | Right | | ||
| 116 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 117 | */ | ||
| 118 | [_LOWER] = KEYMAP_TV45( | ||
| 119 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 120 | KC_0 , KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL , | ||
| 121 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 122 | KC_DLR , KC_4, KC_5, KC_6, KC_DOT, KC_PLUS, KC_ASTR, KC_4, KC_5, KC_6, KC_DOT, KC_PGUP , | ||
| 123 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 124 | KC_EQL , KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_SLSH, KC_1, KC_2, KC_3, KC_UP, KC_PGDN , | ||
| 125 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 126 | BACKLIT , _______ , _______ , KC_HOME , KC_END , _______ , KC_LEFT, KC_DOWN, KC_RGHT ), | ||
| 127 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 128 | |||
| 129 | /* Raise | ||
| 130 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 131 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 132 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 133 | * | F1 | F2 | F3 | F4 | F5 | F6 | _ | ? | + | { | } | | | ||
| 134 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 135 | * | F7 | F8 | F9 | F10 | F11 | F12 | - | / | = | [ | ] | | | ||
| 136 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 137 | * | Brite | | | Play | Next | | Mute | Vol- | Vol+ | | ||
| 138 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 139 | */ | ||
| 140 | [_RAISE] = KEYMAP_TV45( | ||
| 141 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 142 | KC_TILD,KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL , | ||
| 143 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 144 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_QUES, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE , | ||
| 145 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 146 | KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_MINS, KC_SLSH, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS , | ||
| 147 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 148 | BACKLIT , _______ , _______ , KC_MPLY , KC_MNXT , _______ , KC_MUTE, KC_VOLD, KC_VOLU ), | ||
| 149 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 150 | |||
| 151 | /* Adjust (Lower + Raise) | ||
| 152 | * ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 153 | * | | Reset| | | | | | | | | | Del | | ||
| 154 | * |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 155 | * | | | | | |AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 156 | * |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 157 | * | | | | | | | | | | | | | | ||
| 158 | * |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 159 | * | | | | | | | | | | | ||
| 160 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 161 | */ | ||
| 162 | [_ADJUST] = KEYMAP_TV45( | ||
| 163 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | ||
| 164 | _______, RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL , | ||
| 165 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | ||
| 166 | _______ ,_______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______ , | ||
| 167 | /*|---------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`----------------|*/ | ||
| 168 | _______ ,_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ , | ||
| 169 | /*|----------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`---------------|*/ | ||
| 170 | _______ , _______ , _______ , _______ , _______ , _______ , _______, _______, _______ ), | ||
| 171 | /*`---------+---------------+---------+-------^^^------+-------^^^-------+----------+--------+--------+--------------'*/ | ||
| 172 | }; | ||
| 173 | |||
| 174 | void persistant_default_layer_set(uint16_t default_layer) { | ||
| 175 | eeconfig_update_default_layer(default_layer); | ||
| 176 | default_layer_set(default_layer); | ||
| 177 | } | ||
| 178 | |||
| 179 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 180 | switch (keycode) { | ||
| 181 | case QWERTY: | ||
| 182 | if (record->event.pressed) { | ||
| 183 | persistant_default_layer_set(1UL<<_QWERTY); | ||
| 184 | } | ||
| 185 | return false; | ||
| 186 | break; | ||
| 187 | case COLEMAK: | ||
| 188 | if (record->event.pressed) { | ||
| 189 | persistant_default_layer_set(1UL<<_COLEMAK); | ||
| 190 | } | ||
| 191 | return false; | ||
| 192 | break; | ||
| 193 | case DVORAK: | ||
| 194 | if (record->event.pressed) { | ||
| 195 | persistant_default_layer_set(1UL<<_DVORAK); | ||
| 196 | } | ||
| 197 | return false; | ||
| 198 | break; | ||
| 199 | case LOWER: | ||
| 200 | if (record->event.pressed) { | ||
| 201 | layer_on(_LOWER); | ||
| 202 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 203 | } else { | ||
| 204 | layer_off(_LOWER); | ||
| 205 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 206 | } | ||
| 207 | return false; | ||
| 208 | break; | ||
| 209 | case RAISE: | ||
| 210 | if (record->event.pressed) { | ||
| 211 | layer_on(_RAISE); | ||
| 212 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 213 | } else { | ||
| 214 | layer_off(_RAISE); | ||
| 215 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 216 | } | ||
| 217 | return false; | ||
| 218 | break; | ||
| 219 | case BACKLIT: | ||
| 220 | if (record->event.pressed) { | ||
| 221 | register_code(KC_RSFT); | ||
| 222 | #ifdef BACKLIGHT_ENABLE | ||
| 223 | backlight_step(); | ||
| 224 | #endif | ||
| 225 | } else { | ||
| 226 | unregister_code(KC_RSFT); | ||
| 227 | } | ||
| 228 | return false; | ||
| 229 | break; | ||
| 230 | } | ||
| 231 | return true; | ||
| 232 | } | ||
diff --git a/keyboards/tv44/keymaps/smt/readme.md b/keyboards/tv44/keymaps/smt/readme.md new file mode 100644 index 000000000..647eb8976 --- /dev/null +++ b/keyboards/tv44/keymaps/smt/readme.md | |||
| @@ -0,0 +1,126 @@ | |||
| 1 | # smt's TV44 keymap | ||
| 2 | |||
| 3 | This keymap is based on a combination of my Planck keymap and [jeebak's TV44 layout](https://github.com/qmk/qmk_firmware/tree/master/keyboards/tv44/keymaps/jeebak). I removed the macros and TouchCursor/MouseCursor layers, because I'm just not ready for that level of mind-mapping. | ||
| 4 | |||
| 5 | I had been using something close to the default Minivan layout, but after spending a bit of time with the Planck and Preonic, I decided it would be better for me to try to standardize to some degree, where possible. | ||
| 6 | |||
| 7 | Also, it's worth noting that my Minivan is one with the "arrows" layout, which has a 45th key, so I had to define a new KEYMAP_TV45 macro in config.h. In spite of this, the 45-key Minivan is still technically considered a "TV44" as far as I know. | ||
| 8 | |||
| 9 |  | ||
| 10 | |||
| 11 | ## Notable features (most of which can be found in my or jeebak's respective keymap file): | ||
| 12 | |||
| 13 | 1. **Shift/Enter** | ||
| 14 | |||
| 15 | I use both the left and right shift keys when I type. When I want to modify a key with shift, I hold shift with the hand opposite the one typing the key. In the default keymap, Enter is where shift would be on a standard keyboard layout. Oh, muscle memory. | ||
| 16 | |||
| 17 | Thankfully, QMK supports [mod-tap](https://github.com/jackhumbert/qmk_firmware/wiki#fun-with-modifier-keys) keys, and this allows me to set the Enter key to send a modifier (MOD_LSFT) when held, and KC_ENT when tapped. Awesome! | ||
| 18 | |||
| 19 | 2. **Hyper/Tab** | ||
| 20 | |||
| 21 | This key modifies with "Hyper" (see [Brett Terpstra's post](http://brettterpstra.com/2012/12/08/a-useful-caps-lock-key/) on this) when held, and outputs the code for Tab when tapped. On the Mac, I use KeyboardMaestro to remap my hyper-keys to do a lot of crazy things. | ||
| 22 | |||
| 23 | 3. **Ctrl/Escape** | ||
| 24 | |||
| 25 | I set up another mod-tap, this time for the Escape key that would act as a Control modifier when held. | ||
| 26 | |||
| 27 | 4. **Alt/Backtick** | ||
| 28 | |||
| 29 | I don't currently have LEDs on most of my keyboards, and I certainly don't want LED controls on the base layer of a 40%. | ||
| 30 | |||
| 31 | So, why use backtick in the lower left corner? I use it as my tmux prefix key, so I need to type it more frequently than most people. Putting it on the base layer works well for my use case, and it's consistent with where I place it in my Planck and Preonic keymaps. | ||
| 32 | |||
| 33 | I also like Alt in that position, so it works well as yet another mod-tap key. | ||
| 34 | |||
| 35 | |||
| 36 | ## Layers | ||
| 37 | |||
| 38 | ### Qwerty | ||
| 39 | |||
| 40 | ``` | ||
| 41 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 42 | |Hyper/Tab| Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 43 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 44 | | Ctrl/Esc | A | S | D | F | G | H | J | K | L | ; | ' | | ||
| 45 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 46 | | Shift | Z | X | C | V | B | N | M | , | . | / |Sft/Ent| | ||
| 47 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 48 | | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 49 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 50 | ``` | ||
| 51 | |||
| 52 | ### Colemak | ||
| 53 | |||
| 54 | ``` | ||
| 55 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 56 | |Hyper/Tab| Q | W | F | P | G | J | L | U | Y | ; | Bksp | | ||
| 57 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 58 | | Ctrl/Esc | A | R | S | T | D | H | N | E | I | O | ' | | ||
| 59 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 60 | | Shift | Z | X | C | V | B | K | M | , | . | / |Sft/Ent| | ||
| 61 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 62 | | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 63 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 64 | ``` | ||
| 65 | |||
| 66 | ### Dvorak | ||
| 67 | |||
| 68 | ``` | ||
| 69 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 70 | |Hyper/Tab| ' | , | . | P | Y | F | G | C | R | L | Bksp | | ||
| 71 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 72 | | Ctrl/Esc | A | O | E | U | I | D | H | T | N | S | - | | ||
| 73 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 74 | | Shift | ; | Q | J | K | X | B | M | W | V | Z |Sft/Ent| | ||
| 75 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 76 | | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | ||
| 77 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 78 | ``` | ||
| 79 | |||
| 80 | ### Lower | ||
| 81 | |||
| 82 | This is where I put the number row, two numpad clusters, common arithmetic operators, and cursorkeys: Arrow cluster, Home/End, Page Up/Page Down. `0` and `$` are also placed on the left side for convenient access to beginning-of-line and end-of-line Vim commands. BRITE has been moved here from the base layer. | ||
| 83 | |||
| 84 | ``` | ||
| 85 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 86 | | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 87 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 88 | | $ | 4 | 5 | 6 | . | + | * | 4 | 5 | 6 | . | PageUp | | ||
| 89 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 90 | | = | 7 | 8 | 9 | 0 | - | / | 1 | 2 | 3 | Up |PageDn | | ||
| 91 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 92 | | Brite | | | Home | End | | Left | Down | Right | | ||
| 93 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 94 | ``` | ||
| 95 | |||
| 96 | ### Raise | ||
| 97 | |||
| 98 | As a developer, it makes the most sense for me to group all the commonly-used symbols that don't fit on the main layer. In particular, having the dual-column of parens-braces-brackets helps me keep them straight. I've dropped basic media controls onto this layer as well. | ||
| 99 | |||
| 100 | ``` | ||
| 101 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 102 | | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 103 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 104 | | F1 | F2 | F3 | F4 | F5 | F6 | _ | ? | + | { | } | | | | ||
| 105 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 106 | | F7 | F8 | F9 | F10 | F11 | F12 | - | / | = | [ | ] | \ | | ||
| 107 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 108 | | Brite | | | Play | Next | | Mute | Vol- | Vol+ | | ||
| 109 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 110 | ``` | ||
| 111 | |||
| 112 | ### Adjust (Lower + Raise) | ||
| 113 | |||
| 114 | Utility layer. There isn't much here; it's mainly for swapping the default keymap between Qwerty and Dvorak, or putting the keyboard into flash mode via the Reset key. | ||
| 115 | |||
| 116 | ``` | ||
| 117 | ,---------+------+------+------+------+------+------+------+------+------+------+---------. | ||
| 118 | | | Reset| | | | | | | | | | Del | | ||
| 119 | |---------`------`------`------`------`------`------`------`------`------`------`---------| | ||
| 120 | | | | | | |AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 121 | |----------`------`------`------`------`------`------`------`------`------`------`--------| | ||
| 122 | | | | | | | | | | | | | | | ||
| 123 | |-----------`------`------`------`------`-----'-------`------`------`------`------`-------| | ||
| 124 | | | | | | | | | | | | ||
| 125 | `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | ||
| 126 | ``` | ||
