diff options
| -rw-r--r-- | keyboards/crkbd/keymaps/bcat/config.h | 6 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/bcat/keymap.c | 51 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/bcat/readme.md | 30 | ||||
| -rw-r--r-- | keyboards/crkbd/keymaps/bcat/rules.mk | 3 | ||||
| -rw-r--r-- | users/bcat/config.h | 20 |
5 files changed, 110 insertions, 0 deletions
diff --git a/keyboards/crkbd/keymaps/bcat/config.h b/keyboards/crkbd/keymaps/bcat/config.h new file mode 100644 index 000000000..fd5fce542 --- /dev/null +++ b/keyboards/crkbd/keymaps/bcat/config.h | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #define EE_HANDS | ||
| 4 | |||
| 5 | /* Limit max RGB LED current to avoid tripping controller fuse. */ | ||
| 6 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS 150 | ||
diff --git a/keyboards/crkbd/keymaps/bcat/keymap.c b/keyboards/crkbd/keymaps/bcat/keymap.c new file mode 100644 index 000000000..59ed00b5d --- /dev/null +++ b/keyboards/crkbd/keymaps/bcat/keymap.c | |||
| @@ -0,0 +1,51 @@ | |||
| 1 | #include QMK_KEYBOARD_H | ||
| 2 | |||
| 3 | enum layer { | ||
| 4 | LAYER_DEFAULT, | ||
| 5 | LAYER_LOWER, | ||
| 6 | LAYER_RAISE, | ||
| 7 | LAYER_ADJUST, | ||
| 8 | }; | ||
| 9 | |||
| 10 | #define LY_LWR MO(LAYER_LOWER) | ||
| 11 | #define LY_RSE MO(LAYER_RAISE) | ||
| 12 | |||
| 13 | #define KY_CESC LCTL_T(KC_ESC) | ||
| 14 | |||
| 15 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 16 | /* Default layer: http://www.keyboard-layout-editor.com/#/gists/08d9827d916662a9414f48805aa895a5 */ | ||
| 17 | [LAYER_DEFAULT] = LAYOUT( | ||
| 18 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 19 | KY_CESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
| 20 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, | ||
| 21 | KC_LALT, LY_LWR, KC_SPC, KC_ENT, LY_RSE, KC_RGUI | ||
| 22 | ), | ||
| 23 | |||
| 24 | /* Lower layer: http://www.keyboard-layout-editor.com/#/gists/c3fba5eaa2cd70fdfbdbc0f9e34d3bc0 */ | ||
| 25 | [LAYER_LOWER] = LAYOUT( | ||
| 26 | _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, | ||
| 27 | _______, _______, _______, KC_PIPE, KC_TILD, KC_DEL, _______, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, _______, | ||
| 28 | _______, _______, _______, KC_BSLS, KC_GRV, KC_INS, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, _______, | ||
| 29 | _______, _______, _______, _______, _______, _______ | ||
| 30 | ), | ||
| 31 | |||
| 32 | /* Raise layer: http://www.keyboard-layout-editor.com/#/gists/08b44355d4ca85d294bad9e2821f91d7 */ | ||
| 33 | [LAYER_RAISE] = LAYOUT( | ||
| 34 | _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, | ||
| 35 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_HOME, KC_PGUP, | ||
| 36 | _______, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, KC_END, KC_PGDN, | ||
| 37 | _______, _______, _______, _______, _______, _______ | ||
| 38 | ), | ||
| 39 | |||
| 40 | /* Adjust layer: http://www.keyboard-layout-editor.com/#/gists/77e7572e077b36a23eb2086017e16fee */ | ||
| 41 | [LAYER_ADJUST] = LAYOUT( | ||
| 42 | KC_CAPS, _______, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, KC_PSCR, KC_SLCK, KC_PAUS, _______, | ||
| 43 | _______, _______, KC_MPRV, KC_VOLD, KC_MNXT, _______, RGB_RMOD, RGB_VAD, RGB_VAI, RGB_MOD, RGB_HUI, RGB_SAI, | ||
| 44 | _______, _______, _______, KC_MUTE, _______, _______, RGB_SPD, RGB_SPI, _______, _______, RGB_HUD, RGB_SAD, | ||
| 45 | _______, _______, _______, RGB_TOG, _______, _______ | ||
| 46 | ), | ||
| 47 | }; | ||
| 48 | |||
| 49 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 50 | return update_tri_layer_state(state, LAYER_LOWER, LAYER_RAISE, LAYER_ADJUST); | ||
| 51 | } | ||
diff --git a/keyboards/crkbd/keymaps/bcat/readme.md b/keyboards/crkbd/keymaps/bcat/readme.md new file mode 100644 index 000000000..aa2d943d1 --- /dev/null +++ b/keyboards/crkbd/keymaps/bcat/readme.md | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # bcat's Corne layout | ||
| 2 | |||
| 3 | This split ergo layout mirrors | ||
| 4 | [my Lily58 layout](https://github.com/qmk/qmk_firmware/tree/master/keyboards/lily58/keymaps/bcat) | ||
| 5 | with the number row removed and RGB controls added. See that layout's docs for | ||
| 6 | more details on the principles that went into the layout. | ||
| 7 | |||
| 8 | ## Default layer | ||
| 9 | |||
| 10 |  | ||
| 11 | |||
| 12 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/08d9827d916662a9414f48805aa895a5)) | ||
| 13 | |||
| 14 | ## Lower layer | ||
| 15 | |||
| 16 |  | ||
| 17 | |||
| 18 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/c3fba5eaa2cd70fdfbdbc0f9e34d3bc0)) | ||
| 19 | |||
| 20 | ## Raise layer | ||
| 21 | |||
| 22 |  | ||
| 23 | |||
| 24 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/08b44355d4ca85d294bad9e2821f91d7)) | ||
| 25 | |||
| 26 | ## Adjust layer | ||
| 27 | |||
| 28 |  | ||
| 29 | |||
| 30 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/77e7572e077b36a23eb2086017e16fee)) | ||
diff --git a/keyboards/crkbd/keymaps/bcat/rules.mk b/keyboards/crkbd/keymaps/bcat/rules.mk new file mode 100644 index 000000000..cd3418dab --- /dev/null +++ b/keyboards/crkbd/keymaps/bcat/rules.mk | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | BOOTLOADER = atmel-dfu # Elite-C | ||
| 2 | |||
| 3 | RGB_MATRIX_ENABLE = WS2812 # per-key RGB and underglow | ||
diff --git a/users/bcat/config.h b/users/bcat/config.h index f6be07bf6..6b132a429 100644 --- a/users/bcat/config.h +++ b/users/bcat/config.h | |||
| @@ -22,6 +22,26 @@ | |||
| 22 | */ | 22 | */ |
| 23 | #define TAPPING_FORCE_HOLD | 23 | #define TAPPING_FORCE_HOLD |
| 24 | 24 | ||
| 25 | #if defined(RGB_MATRIX_ENABLE) | ||
| 26 | /* Turn off per-key RGB when the host goes to sleep. */ | ||
| 27 | #define RGB_DISABLE_WHEN_USB_SUSPENDED true | ||
| 28 | |||
| 29 | /* Keep per-key RGB increments consistent across keyboards. */ | ||
| 30 | #undef RGB_MATRIX_HUE_STEP | ||
| 31 | #undef RGB_MATRIX_SAT_STEP | ||
| 32 | #undef RGB_MATRIX_VAL_STEP | ||
| 33 | #undef RGB_MATRIX_SPD_STEP | ||
| 34 | |||
| 35 | #define RGB_MATRIX_HUE_STEP 8 | ||
| 36 | #define RGB_MATRIX_SAT_STEP 17 | ||
| 37 | #define RGB_MATRIX_VAL_STEP 17 | ||
| 38 | #define RGB_MATRIX_SPD_STEP 17 | ||
| 39 | |||
| 40 | /* Turn on additional RGB animations. */ | ||
| 41 | #define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 42 | #define RGB_MATRIX_KEYPRESSES | ||
| 43 | #endif | ||
| 44 | |||
| 25 | #if defined(RGBLIGHT_ENABLE) | 45 | #if defined(RGBLIGHT_ENABLE) |
| 26 | /* Turn off RGB underglow when the host goes to sleep. */ | 46 | /* Turn off RGB underglow when the host goes to sleep. */ |
| 27 | #define RGBLIGHT_SLEEP | 47 | #define RGBLIGHT_SLEEP |
