diff options
| author | Kaleb Elwert <belak@coded.io> | 2017-06-15 12:45:53 -0700 |
|---|---|---|
| committer | Kaleb Elwert <belak@coded.io> | 2017-06-15 12:45:53 -0700 |
| commit | e32e7dc0f52e1f62a61e3cf81e4a4c23fad2dbc3 (patch) | |
| tree | c2d3f682904a977ae36e48eada2a413d7334eca0 | |
| parent | 44ce1791928f65ec0a1b04f1318395f2dda4fb26 (diff) | |
| download | qmk_firmware-e32e7dc0f52e1f62a61e3cf81e4a4c23fad2dbc3.tar.gz qmk_firmware-e32e7dc0f52e1f62a61e3cf81e4a4c23fad2dbc3.zip | |
tv44: update smt keymap to use new macros and remove custom ones
| -rw-r--r-- | keyboards/tv44/keymaps/smt/config.h | 36 | ||||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/keymap.c | 12 | ||||
| -rw-r--r-- | keyboards/tv44/keymaps/smt/readme.md | 6 |
3 files changed, 9 insertions, 45 deletions
diff --git a/keyboards/tv44/keymaps/smt/config.h b/keyboards/tv44/keymaps/smt/config.h deleted file mode 100644 index f8f0a5078..000000000 --- a/keyboards/tv44/keymaps/smt/config.h +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 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/keymap.c b/keyboards/tv44/keymaps/smt/keymap.c index dfd624466..0540ad97e 100644 --- a/keyboards/tv44/keymaps/smt/keymap.c +++ b/keyboards/tv44/keymaps/smt/keymap.c | |||
| @@ -49,7 +49,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 49 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | 49 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | |
| 50 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 50 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 51 | */ | 51 | */ |
| 52 | [_QWERTY] = KEYMAP_TV45( | 52 | [_QWERTY] = KEYMAP_ARROW( |
| 53 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 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 , | 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 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 55 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
| @@ -71,7 +71,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 71 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | 71 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | |
| 72 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 72 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 73 | */ | 73 | */ |
| 74 | [_COLEMAK] = KEYMAP_TV45( | 74 | [_COLEMAK] = KEYMAP_ARROW( |
| 75 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 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 , | 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 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 77 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
| @@ -93,7 +93,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 93 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | | 93 | * | Alt/` | GUI | Lower | Space | Space | Raise | GUI | Alt | Ctrl | |
| 94 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 94 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 95 | */ | 95 | */ |
| 96 | [_DVORAK] = KEYMAP_TV45( | 96 | [_DVORAK] = KEYMAP_ARROW( |
| 97 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 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 , | 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 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 99 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
| @@ -115,7 +115,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 115 | * | Brite | | | Home | End | | Left | Down | Right | | 115 | * | Brite | | | Home | End | | Left | Down | Right | |
| 116 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 116 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 117 | */ | 117 | */ |
| 118 | [_LOWER] = KEYMAP_TV45( | 118 | [_LOWER] = KEYMAP_ARROW( |
| 119 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 119 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ |
| 120 | ALL_T(KC_0), KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL , | 120 | ALL_T(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 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 121 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
| @@ -137,7 +137,7 @@ ALT_T(BACKLIT), _______ , _______ , KC_HOME , KC_END , _____ | |||
| 137 | * | Brite | | | Play | Next | | Mute | Vol- | Vol+ | | 137 | * | Brite | | | Play | Next | | Mute | Vol- | Vol+ | |
| 138 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 138 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 139 | */ | 139 | */ |
| 140 | [_RAISE] = KEYMAP_TV45( | 140 | [_RAISE] = KEYMAP_ARROW( |
| 141 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 141 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ |
| 142 | ALL_T(KC_TILD),KC_EXLM,KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL , | 142 | ALL_T(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 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 143 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
| @@ -159,7 +159,7 @@ ALT_T(BACKLIT), _______ , _______ , KC_MPLY , KC_MNXT , _____ | |||
| 159 | * | | | | | | | | | | | 159 | * | | | | | | | | | | |
| 160 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' | 160 | * `-------+---------+--------+-----^^^------+-----^^^------+---------+------+------+-------' |
| 161 | */ | 161 | */ |
| 162 | [_ADJUST] = KEYMAP_TV45( | 162 | [_ADJUST] = KEYMAP_ARROW( |
| 163 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ | 163 | /*,--------+-------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------------.*/ |
| 164 | _______, RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET , | 164 | _______, RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET , |
| 165 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ | 165 | /*|--------`-------`--------`--------`--------`--------`--------`--------`--------`--------`--------`-----------------|*/ |
diff --git a/keyboards/tv44/keymaps/smt/readme.md b/keyboards/tv44/keymaps/smt/readme.md index 87bfbb04b..059fd1bbd 100644 --- a/keyboards/tv44/keymaps/smt/readme.md +++ b/keyboards/tv44/keymaps/smt/readme.md | |||
| @@ -4,7 +4,7 @@ This keymap is based on a combination of my Planck keymap and [jeebak's TV44 lay | |||
| 4 | 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. | 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 | 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. | 7 | Also, it's worth noting that my Minivan is one with the "arrows" layout, which has a 45th key. In spite of this, the 45-key Minivan is still technically considered a "TV44" as far as I know. |
| 8 | 8 | ||
| 9 |  | 9 |  |
| 10 | 10 | ||
| @@ -21,9 +21,9 @@ Also, it's worth noting that my Minivan is one with the "arrows" layout, which h | |||
| 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. | 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 | 22 | ||
| 23 | 3. **Ctrl/Escape** | 23 | 3. **Ctrl/Escape** |
| 24 | 24 | ||
| 25 | I set up another mod-tap, this time for the Escape key that would act as a Control modifier when held. | 25 | I set up another mod-tap, this time for the Escape key that would act as a Control modifier when held. |
| 26 | 26 | ||
| 27 | 4. **Alt/Backtick** | 27 | 4. **Alt/Backtick** |
| 28 | 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%. | 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%. |
