diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/community/60_tsangan_hhkb/bcat/keymap.c | 24 | ||||
| -rw-r--r-- | layouts/community/60_tsangan_hhkb/bcat/readme.md | 39 |
2 files changed, 41 insertions, 22 deletions
diff --git a/layouts/community/60_tsangan_hhkb/bcat/keymap.c b/layouts/community/60_tsangan_hhkb/bcat/keymap.c index ab639b05f..c04eb78cf 100644 --- a/layouts/community/60_tsangan_hhkb/bcat/keymap.c +++ b/layouts/community/60_tsangan_hhkb/bcat/keymap.c | |||
| @@ -2,12 +2,12 @@ | |||
| 2 | 2 | ||
| 3 | enum layer { | 3 | enum layer { |
| 4 | LAYER_DEFAULT, | 4 | LAYER_DEFAULT, |
| 5 | LAYER_FUNCTION, | 5 | LAYER_FUNCTION_1, |
| 6 | LAYER_ADJUST, | 6 | LAYER_FUNCTION_2, |
| 7 | }; | 7 | }; |
| 8 | 8 | ||
| 9 | #define LY_FUNC MO(LAYER_FUNCTION) | 9 | #define LY_FN1 MO(LAYER_FUNCTION_1) |
| 10 | #define LY_ADJST LT(LAYER_ADJUST, KC_APP) | 10 | #define LY_FN2 MO(LAYER_FUNCTION_2) |
| 11 | 11 | ||
| 12 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 12 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 13 | /* Default layer: http://www.keyboard-layout-editor.com/#/gists/86b33d75aa6f56d8781ab3d8475f4e77 */ | 13 | /* Default layer: http://www.keyboard-layout-editor.com/#/gists/86b33d75aa6f56d8781ab3d8475f4e77 */ |
| @@ -15,22 +15,22 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 15 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, | 15 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSLS, KC_GRV, |
| 16 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, | 16 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSPC, |
| 17 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | 17 | KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, |
| 18 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, LY_FUNC, | 18 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, LY_FN1, |
| 19 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, LY_ADJST, KC_RCTL | 19 | KC_LCTL, LY_FN2, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_RCTL |
| 20 | ), | 20 | ), |
| 21 | 21 | ||
| 22 | /* Function layer: http://www.keyboard-layout-editor.com/#/gists/f6311fd7e315de781143b80eb040a551 */ | 22 | /* Function 1 layer: http://www.keyboard-layout-editor.com/#/gists/f6311fd7e315de781143b80eb040a551 */ |
| 23 | [LAYER_FUNCTION] = LAYOUT_60_tsangan_hhkb( | 23 | [LAYER_FUNCTION_1] = LAYOUT_60_tsangan_hhkb( |
| 24 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, | 24 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_INS, KC_DEL, |
| 25 | KC_CAPS, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, _______, _______, | 25 | KC_CAPS, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_SLCK, KC_PAUS, KC_UP, _______, _______, |
| 26 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, _______, | 26 | _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGUP, KC_LEFT, KC_RGHT, _______, |
| 27 | _______, _______, _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_DOWN, _______, _______, | 27 | _______, KC_APP, _______, _______, _______, _______, _______, _______, KC_END, KC_PGDN, KC_DOWN, _______, _______, |
| 28 | _______, _______, _______, _______, _______, _______, _______ | 28 | _______, _______, _______, _______, _______, _______, _______ |
| 29 | ), | 29 | ), |
| 30 | 30 | ||
| 31 | /* Adjust layer: http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4 */ | 31 | /* Function 2 layer: http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4 */ |
| 32 | [LAYER_ADJUST] = LAYOUT_60_tsangan_hhkb( | 32 | [LAYER_FUNCTION_2] = LAYOUT_60_tsangan_hhkb( |
| 33 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | 33 | _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, |
| 34 | _______, BL_BRTG, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, _______, _______, _______, RGB_VAI, _______, _______, | 34 | _______, BL_BRTG, KC_MPLY, KC_VOLU, KC_MSTP, _______, EEP_RST, RESET, _______, _______, _______, RGB_VAI, _______, _______, |
| 35 | _______, BL_INC, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, RGB_SPI, RGB_HUI, RGB_SAI, RGB_RMOD, RGB_MOD, RGB_TOG, | 35 | _______, BL_INC, KC_MPRV, KC_VOLD, KC_MNXT, _______, _______, RGB_SPI, RGB_HUI, RGB_SAI, RGB_RMOD, RGB_MOD, RGB_TOG, |
| 36 | _______, BL_DEC, _______, KC_MUTE, _______, _______, _______, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, | 36 | _______, BL_DEC, _______, KC_MUTE, _______, _______, _______, RGB_SPD, RGB_HUD, RGB_SAD, RGB_VAD, _______, _______, |
diff --git a/layouts/community/60_tsangan_hhkb/bcat/readme.md b/layouts/community/60_tsangan_hhkb/bcat/readme.md index eb6722261..20251cb07 100644 --- a/layouts/community/60_tsangan_hhkb/bcat/readme.md +++ b/layouts/community/60_tsangan_hhkb/bcat/readme.md | |||
| @@ -1,25 +1,44 @@ | |||
| 1 | # bcat's 60% Tsangan HHKB layout | 1 | # bcat's 60% Tsangan HHKB layout |
| 2 | 2 | ||
| 3 | This is a normal Tsangan/HHKB (split backspace, split right shift) layout with | 3 | This is a Tsangan/HHKB (split backspace, split right shift) layout following |
| 4 | arrow and navigation keys that match a standard HHKB layout. Additionally, the | 4 | the [traditional HHKB layout](https://deskthority.net/wiki/HHKB_Professional2) |
| 5 | redundant right Super key on the bottom row actives an adjust layer with | 5 | with a few changes: |
| 6 | controls for RGB underglow and backlight, as well as media keys centered around | 6 | |
| 7 | the ESDF cluster. | 7 | * The Delete key is mapped as Backspace (HHKB DIP switch 3). |
| 8 | |||
| 9 | * The Alt and Super keys are swapped to put Alt directly adjacent to the | ||
| 10 | spacebar (HHKB DIP switch 5). | ||
| 11 | |||
| 12 | * The left Super key is replaced with another Function key (HHKB DIP switch 2). | ||
| 13 | Unlike on the real HHKB, this key triggers a different Function 2 layer. (This | ||
| 14 | also helps prevent accidental Super key presses while gaming.) | ||
| 15 | |||
| 16 | * The Function 2 layer contains reset keys, RGB underglow and backlight | ||
| 17 | controls (in place of the arrow and navigation keys), and media controls | ||
| 18 | (centered around the ESDF cluster). | ||
| 19 | |||
| 20 | * The Function 2 layer also has the F1-F12 keys mapped just like the Function 1 | ||
| 21 | layer. This is a concession to gaming because it enables these keys to be | ||
| 22 | easily typed with the left hand, without taking the right hand off the mouse. | ||
| 23 | |||
| 24 | * The leftmost and rightmost bottom row keys are mapped to Ctrl rather than | ||
| 25 | anything more useful because most of my Tsangan PCBs actually have HHKB plates | ||
| 26 | and/or blockers, so there aren't switches installed in those positions. | ||
| 8 | 27 | ||
| 9 | ## Default layer | 28 | ## Default layer |
| 10 | 29 | ||
| 11 |  | 30 |  |
| 12 | 31 | ||
| 13 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/86b33d75aa6f56d8781ab3d8475f4e77)) | 32 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/86b33d75aa6f56d8781ab3d8475f4e77)) |
| 14 | 33 | ||
| 15 | ## Function layer | 34 | ## Function 1 layer |
| 16 | 35 | ||
| 17 |  | 36 |  |
| 18 | 37 | ||
| 19 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/f6311fd7e315de781143b80eb040a551)) | 38 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/f6311fd7e315de781143b80eb040a551)) |
| 20 | 39 | ||
| 21 | ## Adjust layer | 40 | ## Function 2 layer |
| 22 | 41 | ||
| 23 |  | 42 |  |
| 24 | 43 | ||
| 25 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4)) | 44 | ([KLE](http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4)) |
