aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Rascher <jon@bcat.name>2020-04-18 20:41:40 -0500
committerGitHub <noreply@github.com>2020-04-18 18:41:40 -0700
commitd600631ad178632c0f7e081297d6f73cdc44052a (patch)
treee759012821dda58d4ed2d71809fa70cf49e46826
parentf3595f65b7080b3276d956544d86bbb7924adaf0 (diff)
downloadqmk_firmware-d600631ad178632c0f7e081297d6f73cdc44052a.tar.gz
qmk_firmware-d600631ad178632c0f7e081297d6f73cdc44052a.zip
[Keymap] Rework my Tsangan layout; turn off mousekeys (#8836)
* Give Tsangan layout a real Fn2 layer * Disable mouse keys to work around qmk#8323 I don't actually use this feature, so there's no reason for it to be enabled anyway, and it seems to cause spurious wakeups on Windows.
-rw-r--r--layouts/community/60_tsangan_hhkb/bcat/keymap.c24
-rw-r--r--layouts/community/60_tsangan_hhkb/bcat/readme.md39
-rw-r--r--users/bcat/rules.mk4
3 files changed, 43 insertions, 24 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
3enum layer { 3enum 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
12const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 12const 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
3This is a normal Tsangan/HHKB (split backspace, split right shift) layout with 3This is a Tsangan/HHKB (split backspace, split right shift) layout following
4arrow and navigation keys that match a standard HHKB layout. Additionally, the 4the [traditional HHKB layout](https://deskthority.net/wiki/HHKB_Professional2)
5redundant right Super key on the bottom row actives an adjust layer with 5with a few changes:
6controls for RGB underglow and backlight, as well as media keys centered around 6
7the 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
10spacebar (HHKB DIP switch 5).
11
12* The left Super key is replaced with another Function key (HHKB DIP switch 2).
13Unlike on the real HHKB, this key triggers a different Function 2 layer. (This
14also helps prevent accidental Super key presses while gaming.)
15
16* The Function 2 layer contains reset keys, RGB underglow and backlight
17controls (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
21layer. This is a concession to gaming because it enables these keys to be
22easily 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
25anything more useful because most of my Tsangan PCBs actually have HHKB plates
26and/or blockers, so there aren't switches installed in those positions.
8 27
9## Default layer 28## Default layer
10 29
11![Default layer layout](https://i.imgur.com/et26km2.png) 30![Default layer layout](https://i.imgur.com/3tBxms8.png)
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![Function layer layout](https://i.imgur.com/NdJTW9f.png) 36![Function l 1ayer layout](https://i.imgur.com/jn4HtA5.png)
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![Adjust layer layout](https://i.imgur.com/XQR4AEf.png) 42![Function 2layer layout](https://i.imgur.com/tQBIR1m.png)
24 43
25([KLE](http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4)) 44([KLE](http://www.keyboard-layout-editor.com/#/gists/65ac939caec878401603bc36290852d4))
diff --git a/users/bcat/rules.mk b/users/bcat/rules.mk
index 6d3444b2c..585e8092e 100644
--- a/users/bcat/rules.mk
+++ b/users/bcat/rules.mk
@@ -3,9 +3,8 @@ SRC += bcat.c
3# Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM. 3# Enable Bootmagic Lite to consistently reset to bootloader and clear EEPROM.
4BOOTMAGIC_ENABLE = lite 4BOOTMAGIC_ENABLE = lite
5 5
6# Enable mouse and media keys on all keyboards. 6# Enable media keys on all keyboards.
7EXTRAKEY_ENABLE = yes 7EXTRAKEY_ENABLE = yes
8MOUSEKEY_ENABLE = yes
9 8
10# Disable some unwanted features on all keyboards. 9# Disable some unwanted features on all keyboards.
11API_SYSEX_ENABLE = no 10API_SYSEX_ENABLE = no
@@ -13,6 +12,7 @@ COMMAND_ENABLE = no
13CONSOLE_ENABLE = no 12CONSOLE_ENABLE = no
14FAUXCLICKY_ENABLE = no 13FAUXCLICKY_ENABLE = no
15MIDI_ENABLE = no 14MIDI_ENABLE = no
15MOUSEKEY_ENABLE = no
16NKRO_ENABLE = no 16NKRO_ENABLE = no
17SLEEP_LED_ENABLE = no 17SLEEP_LED_ENABLE = no
18UCIS_ENABLE = no 18UCIS_ENABLE = no