Skip to content

Commit

Permalink
keymaps/jtojnar: Move reset to [Program]+[F9]
Browse files Browse the repository at this point in the history
Hiding it in a separate layer prevents triggering the bootloader mode by accident.
And it also matches the vanilla Kinesis firmware (though it is boot mode not reset).
  • Loading branch information
jtojnar committed Oct 22, 2022
1 parent f53ab59 commit 57045a2
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
30 changes: 29 additions & 1 deletion keyboards/kinesis/kint41/keymaps/jtojnar/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ enum my_layers {
QWERTY = 0,
// Keypad layer
KEYPAD = 1,
// Program layer
_PROGRAM = 2,
};

enum my_leds {
Expand All @@ -26,7 +28,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KC_HOME ,
KC_BSPC ,KC_DEL ,KC_END ,
// Right Hand
KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 ,KC_PSCR ,KC_SCRL ,KC_PAUS ,TT(KEYPAD),QK_BOOT ,
KC_F9 ,KC_F10 ,KC_F11 ,KC_F12 ,KC_PSCR ,KC_SCRL ,KC_PAUS ,TT(KEYPAD),MO(_PROGRAM),
KC_6 ,KC_7 ,KC_8 ,KC_9 ,KC_0 ,KC_MINS ,
KC_Y ,KC_U ,KC_I ,KC_O ,KC_P ,KC_BSLS ,
KC_H ,KC_J ,KC_K ,KC_L ,KC_SCLN ,KC_QUOT ,
Expand Down Expand Up @@ -63,6 +65,32 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
_______ ,
_______ ,KC_PENT ,KC_P0
),

[_PROGRAM] = LAYOUT(
// Left Hand
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,
// Left Thumb
_______ ,_______ ,
_______ ,
_______ ,_______ ,_______ ,

// Right Hand
QK_BOOT ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,
_______ ,_______ ,_______ ,_______ ,
// Right Thumb
_______ ,_______ ,
_______ ,
_______ ,_______ ,_______
),
};

void keyboard_pre_init_user(void) {
Expand Down
15 changes: 12 additions & 3 deletions keyboards/kinesis/kint41/keymaps/jtojnar/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

## Keymap

This is mostly based on the `default` layout, with an extra layer to closer match the labels on the keys, and a few modifications to better match my usage patterns.
This is mostly based on the `default` layout, with two extra layers to closer match the labels on the keys, and a few modifications to better match my usage patterns.

### Default layer (QWERTY)

```
,-------------------------------------------------------------------------------------------------------------------.
| Esc | F1 | F2 | F3 | F4 | F5 | F6 | F8 | F9 | F10 | F12 | PSCR | SCRL | PAUS |KEYPAD| BOOT |
| Esc | F1 | F2 | F3 | F4 | F5 | F6 | F8 | F9 | F10 | F12 | PSCR | SCRL | PAUS |KEYPAD|PROGRAM |
|--------+------+------+------+------+------+---------------------------+------+------+------+------+------+--------|
| =+ | 1! | 2@ | 3# | 4$ | 5% | | 6^ | 7& | 8* | 9( | 0) | -_ |
|--------+------+------+------+------+------| +------+------+------+------+------+--------|
Expand Down Expand Up @@ -36,6 +36,7 @@ This is mostly based on the `default` layout, with an extra layer to closer matc
- Right <kbd>Control</kbd> was replaced with <kbd>Alt Gr</kbd> to enable third and fourth key layers, useful to access English layout symbols on layouts for European languages.
- <kbd>Alt Gr</kbd> doubles as <kbd>Menu</kbd> key when [tapped](https://docs.qmk.fm/#/mod_tap).
- Previously unmapped key tap-toggles the Keypad layer.
- Bootloader mode is activated with <kbd>Program</kbd>+<kbd>F9</kbd> (Reset) rather than just <kbd>Program</kbd> key.

### L1: Keypad + Media layer

Expand Down Expand Up @@ -63,6 +64,14 @@ This is mostly based on the `default` layout, with an extra layer to closer matc
`--------------------' `--------------------'
```

### L2: Program layer

```
,-------------------------------------------------------------------------------------------------------------------.
| | | | | | | | BOOT | | | | | | | | |
|--------+------+------+------+------+------+---------------------------+------+------+------+------+------+--------|
```

## Setting up

Run
Expand All @@ -80,4 +89,4 @@ Run
nix-shell -I 'nixpkgs=channel:nixos-unstable' -p qmk --run 'qmk flash'
```

Then, after being asked, press <kbd>progm</kbd> key.
Then, after being asked, press <kbd>progm</kbd>+<kbd>F9</kbd> (RESET).

0 comments on commit 57045a2

Please sign in to comment.