diff options
| -rw-r--r-- | keyboards/planck/keymaps/tom/keymap.c | 37 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/tom/readme.md | 4 |
2 files changed, 6 insertions, 35 deletions
diff --git a/keyboards/planck/keymaps/tom/keymap.c b/keyboards/planck/keymaps/tom/keymap.c index abd7c8ada..6e3b08938 100644 --- a/keyboards/planck/keymaps/tom/keymap.c +++ b/keyboards/planck/keymaps/tom/keymap.c | |||
| @@ -21,21 +21,14 @@ extern keymap_config_t keymap_config; | |||
| 21 | 21 | ||
| 22 | enum planck_layers { | 22 | enum planck_layers { |
| 23 | _QWERTY, | 23 | _QWERTY, |
| 24 | _COLEMAK, | ||
| 25 | _DVORAK, | ||
| 26 | _LOWER, | 24 | _LOWER, |
| 27 | _RAISE, | 25 | _RAISE, |
| 28 | _PLOVER, | ||
| 29 | _ADJUST | 26 | _ADJUST |
| 30 | }; | 27 | }; |
| 31 | 28 | ||
| 32 | enum planck_keycodes { | 29 | enum planck_keycodes { |
| 33 | QWERTY = SAFE_RANGE, | 30 | QWERTY = SAFE_RANGE, |
| 34 | COLEMAK, | 31 | BACKLIT |
| 35 | DVORAK, | ||
| 36 | PLOVER, | ||
| 37 | BACKLIT, | ||
| 38 | EXT_PLV | ||
| 39 | }; | 32 | }; |
| 40 | 33 | ||
| 41 | #define LOWER MO(_LOWER) | 34 | #define LOWER MO(_LOWER) |
| @@ -110,7 +103,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 110 | * `-----------------------------------------------------------------------------------' | 103 | * `-----------------------------------------------------------------------------------' |
| 111 | */ | 104 | */ |
| 112 | [_ADJUST] = LAYOUT_planck_grid( | 105 | [_ADJUST] = LAYOUT_planck_grid( |
| 113 | _______, RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL , | 106 | C(G(S(KC_4))), RESET, DEBUG, RGB_TOG, RGB_MOD, RGB_HUI, RGB_HUD, RGB_SAI, RGB_SAD, RGB_VAI, RGB_VAD, KC_DEL, |
| 114 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, | 107 | _______, _______, MU_MOD, AU_ON, AU_OFF, AG_NORM, AG_SWAP, QWERTY, _______, _______, _______, _______, |
| 115 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, | 108 | _______, MUV_DE, MUV_IN, MU_ON, MU_OFF, MI_ON, MI_OFF, TERM_ON, TERM_OFF, _______, _______, _______, |
| 116 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | 109 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ |
| @@ -136,32 +129,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 136 | } | 129 | } |
| 137 | return false; | 130 | return false; |
| 138 | break; | 131 | break; |
| 139 | case BACKLIT: | ||
| 140 | if (record->event.pressed) { | ||
| 141 | register_code(KC_RSFT); | ||
| 142 | #ifdef BACKLIGHT_ENABLE | ||
| 143 | backlight_step(); | ||
| 144 | #endif | ||
| 145 | #ifdef KEYBOARD_planck_rev5 | ||
| 146 | PORTE &= ~(1<<6); | ||
| 147 | #endif | ||
| 148 | } else { | ||
| 149 | unregister_code(KC_RSFT); | ||
| 150 | #ifdef KEYBOARD_planck_rev5 | ||
| 151 | PORTE |= (1<<6); | ||
| 152 | #endif | ||
| 153 | } | ||
| 154 | return false; | ||
| 155 | break; | ||
| 156 | case EXT_PLV: | ||
| 157 | if (record->event.pressed) { | ||
| 158 | #ifdef AUDIO_ENABLE | ||
| 159 | PLAY_SONG(plover_gb_song); | ||
| 160 | #endif | ||
| 161 | layer_off(_PLOVER); | ||
| 162 | } | ||
| 163 | return false; | ||
| 164 | break; | ||
| 165 | } | 132 | } |
| 166 | return true; | 133 | return true; |
| 167 | } | 134 | } |
diff --git a/keyboards/planck/keymaps/tom/readme.md b/keyboards/planck/keymaps/tom/readme.md index 7e31e2a05..8326cc13d 100644 --- a/keyboards/planck/keymaps/tom/readme.md +++ b/keyboards/planck/keymaps/tom/readme.md | |||
| @@ -25,6 +25,10 @@ This layout is data-driven: I installed [WhatPulse](https://whatpulse.org/) a fe | |||
| 25 | - map brightness up / down to original location of left and up arrows | 25 | - map brightness up / down to original location of left and up arrows |
| 26 | - map volume up / down to original location of down and right arrows | 26 | - map volume up / down to original location of down and right arrows |
| 27 | 27 | ||
| 28 | ### ADJUST | ||
| 29 | |||
| 30 | - map to esc key: screenshot region to clipboard - an alias for ctrl + cmd + shift + 4 | ||
| 31 | |||
| 28 | 32 | ||
| 29 | ## RGB LED | 33 | ## RGB LED |
| 30 | 34 | ||
