diff options
| author | Jonathan Rascher <jon@bcat.name> | 2021-08-03 11:39:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-03 09:39:43 -0700 |
| commit | 853344235a1cc1329000af2887de50ed4ce964a2 (patch) | |
| tree | 4fdaf243273da277944c783da9c44c93d6fd8c89 /keyboards/lily58/keymaps | |
| parent | 4d42fb203143340045bfe760bfbe2e427315cf5a (diff) | |
| download | qmk_firmware-853344235a1cc1329000af2887de50ed4ce964a2.tar.gz qmk_firmware-853344235a1cc1329000af2887de50ed4ce964a2.zip | |
[Keymap] Minor cleanup of bcat keymaps and userspace (#13224)
Diffstat (limited to 'keyboards/lily58/keymaps')
| -rw-r--r-- | keyboards/lily58/keymaps/bcat/config.h | 16 | ||||
| -rw-r--r-- | keyboards/lily58/keymaps/bcat/keymap.c | 9 |
2 files changed, 19 insertions, 6 deletions
diff --git a/keyboards/lily58/keymaps/bcat/config.h b/keyboards/lily58/keymaps/bcat/config.h index 180926204..dbe724d56 100644 --- a/keyboards/lily58/keymaps/bcat/config.h +++ b/keyboards/lily58/keymaps/bcat/config.h | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | /* Copyright 2021 Jonathan Rascher | ||
| 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 | |||
| 1 | #pragma once | 17 | #pragma once |
| 2 | 18 | ||
| 3 | #define EE_HANDS | 19 | #define EE_HANDS |
diff --git a/keyboards/lily58/keymaps/bcat/keymap.c b/keyboards/lily58/keymaps/bcat/keymap.c index 549363d03..69af2ca00 100644 --- a/keyboards/lily58/keymaps/bcat/keymap.c +++ b/keyboards/lily58/keymaps/bcat/keymap.c | |||
| @@ -34,6 +34,7 @@ enum layer { | |||
| 34 | #define KY_ZMRST LCTL(KC_0) | 34 | #define KY_ZMRST LCTL(KC_0) |
| 35 | 35 | ||
| 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 36 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 37 | // clang-format off | ||
| 37 | /* Default layer: http://www.keyboard-layout-editor.com/#/gists/e0eb3af65961e9fd612dcff3ddd88e4f */ | 38 | /* Default layer: http://www.keyboard-layout-editor.com/#/gists/e0eb3af65961e9fd612dcff3ddd88e4f */ |
| 38 | [LAYER_DEFAULT] = LAYOUT( | 39 | [LAYER_DEFAULT] = LAYOUT( |
| 39 | KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, | 40 | KC_EQL, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, |
| @@ -42,7 +43,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 42 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_WBAK, KC_WFWD, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | 43 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_WBAK, KC_WFWD, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, |
| 43 | KC_LALT, KC_LCTL, LY_LWR, KC_SPC, KC_ENT, LY_RSE, KC_RALT, KC_RGUI | 44 | KC_LALT, KC_LCTL, LY_LWR, KC_SPC, KC_ENT, LY_RSE, KC_RALT, KC_RGUI |
| 44 | ), | 45 | ), |
| 45 | |||
| 46 | /* Lower layer: http://www.keyboard-layout-editor.com/#/gists/19ad0d3b5d745fbb2818db09740f5a11 */ | 46 | /* Lower layer: http://www.keyboard-layout-editor.com/#/gists/19ad0d3b5d745fbb2818db09740f5a11 */ |
| 47 | [LAYER_LOWER] = LAYOUT( | 47 | [LAYER_LOWER] = LAYOUT( |
| 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 48 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| @@ -51,7 +51,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 51 | _______, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, KC_LGUI, _______, _______, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_GRV, | 51 | _______, KC_APP, KC_PSCR, KC_SLCK, KC_PAUS, KC_LGUI, _______, _______, KC_BSLS, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_GRV, |
| 52 | _______, _______, _______, _______, _______, _______, _______, _______ | 52 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 53 | ), | 53 | ), |
| 54 | |||
| 55 | /* Raise layer: http://www.keyboard-layout-editor.com/#/gists/912be7955f781cdaf692cc4d4c0b5823 */ | 54 | /* Raise layer: http://www.keyboard-layout-editor.com/#/gists/912be7955f781cdaf692cc4d4c0b5823 */ |
| 56 | [LAYER_RAISE] = LAYOUT( | 55 | [LAYER_RAISE] = LAYOUT( |
| 57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 56 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| @@ -60,7 +59,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 60 | _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_F12, KC_INS, | 59 | _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, KC_F12, KC_INS, |
| 61 | _______, _______, _______, _______, _______, _______, _______, _______ | 60 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 62 | ), | 61 | ), |
| 63 | |||
| 64 | /* Adjust layer: http://www.keyboard-layout-editor.com/#/gists/8f6a3f08350a9bbe1d414b22bca4e6c7 */ | 62 | /* Adjust layer: http://www.keyboard-layout-editor.com/#/gists/8f6a3f08350a9bbe1d414b22bca4e6c7 */ |
| 65 | [LAYER_ADJUST] = LAYOUT( | 63 | [LAYER_ADJUST] = LAYOUT( |
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| @@ -69,8 +67,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 69 | _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 67 | _______, _______, _______, KC_MUTE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, |
| 70 | _______, _______, _______, _______, _______, _______, _______, _______ | 68 | _______, _______, _______, _______, _______, _______, _______, _______ |
| 71 | ), | 69 | ), |
| 70 | // clang-format on | ||
| 72 | }; | 71 | }; |
| 73 | 72 | ||
| 74 | layer_state_t layer_state_set_keymap(layer_state_t state) { | 73 | layer_state_t layer_state_set_keymap(layer_state_t state) { return update_tri_layer_state(state, LAYER_LOWER, LAYER_RAISE, LAYER_ADJUST); } |
| 75 | return update_tri_layer_state(state, LAYER_LOWER, LAYER_RAISE, LAYER_ADJUST); | ||
| 76 | } | ||
