Skip to content

Commit

Permalink
feat: rst_boot, page up + down, more F keys (#30)
Browse files Browse the repository at this point in the history
* fix: readme drawing
  • Loading branch information
minusfive authored Oct 10, 2024
1 parent d6079fc commit 965baab
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 33 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Knucklehead is a mnemonic, macOS-optimized, 42[^1] key ergo columnar keyboard la
---

<img src="img/corneish_zen.svg" alt="minusfive's keymap layout graphical representation" width="100%" />
<img src="./keymap-drawer/corneish_zen.svg" alt="minusfive's keymap layout graphical representation" width="100%" />

![minusfive's Corne-ish Zen](img/corneish_zen.png)

Expand Down Expand Up @@ -253,4 +253,5 @@ To locate your firmware files...
Your keyboard is now ready to use.

[^1]: Currently 42 keys because that's what I use, but honestly sometimes I feels like I have a few keys I don't know what to do with; though I often go back to re-adding them when I try removing them, so :shrug:. May make it work for other boards in the future, but may not be a priority for a while. No promises.

[^2]: Well, "designed" is perhaps too strong a word. I've haphazardly and painfully iterated over dozens of permutations, gradually removing annoyances / disruptions to my flow.
82 changes: 57 additions & 25 deletions keymap-drawer/corneish_zen.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions keymap-drawer/corneish_zen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ layers:
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- $$mdi:power-standby$$
- {t: '$$mdi:backup-restore$$', type: bootloader}
- {t: '$$mdi:backup-restore$$', h: '$$mdi:progress-download$$', type: bootloader}
- F6
- F7
- F8
Expand All @@ -110,15 +110,15 @@ layers:
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:backup-restore$$', type: bootloader}
- {t: '$$mdi:backup-restore$$', h: '$$mdi:progress-download$$', type: bootloader}
- {t: '$$mdi:close-box$$', h: Fn}
- F11
- F12
- F13
- F14
- F15
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- $$mdi:progress-download$$
- $$mdi:progress-download$$
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
- {t: '$$mdi:transfer$$', type: trans}
Expand Down Expand Up @@ -169,6 +169,12 @@ combos:
- p: [9, 21]
k: {h: ;, s: ':'}
l: [L1, L2, Fn]
- p: [6, 18]
k: $$mdi:transfer-up$$
l: [L1, L2, Fn]
- p: [18, 30]
k: $$mdi:transfer-down$$
l: [L1, L2, Fn]
- p: [19, 31]
k: {h: '[', s: '{'}
l: [L1, L2, Fn]
Expand Down
4 changes: 2 additions & 2 deletions knucklehead/Fn.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
&out OUT_TOG &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &trans &trans &trans &trans &trans &kp C_POWER
// β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
// 12 13 14 15 16 17 18 19 20 21 22 23
&sys_reset &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans &trans &trans &trans &trans &sys_reset
&rst_boot 0 0 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans &trans &trans &trans &trans &rst_boot 0 0
// β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
// 24 25 26 27 28 29 30 31 32 33 34 35
&cmo Fn &kp F11 &kp F12 &trans &trans &bootloader &bootloader &trans &trans &trans &trans &cmo Fn
&cmo Fn &kp F11 &kp F12 &kp F13 &kp F14 &kp F15 &trans &trans &trans &trans &trans &cmo Fn
// ╰───────────────┴───────────────┴───────────────┼───────────────┼───────────────┼──────────────── β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β•―
// 36 37 38 39 40 41
&kp C_BRI_DN &kp C_BRI_UP &cmo L2 &cmo L2 &kp CAPSLOCK &trans
Expand Down
12 changes: 12 additions & 0 deletions knucklehead/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,17 @@
mods = <(MOD_LSFT|MOD_RSFT)>;
#binding-cells = <0>;
};

/*
- tap: reset keyboard
- hold: enter bootloader mode
*/
/omit-if-no-ref/ rst_boot: rst_boot {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <500>;
flavor = "tap-preferred";
bindings = <&bootloader>, <&sys_reset>;
};
};
};
2 changes: 2 additions & 0 deletions knucklehead/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
COMBO(minus, &kp MINUS, 7 19, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(equal, &kp EQUAL, 8 20, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(semicolon, &kp SEMICOLON, 9 21, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(pgup, &kp PG_UP, 6 18, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(pgdn, &kp PG_DN, 18 30, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(lbkt, &kp LBKT, 19 31, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(rbkt, &kp RBKT, 20 32, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
COMBO(backslash, &kp BACKSLASH, 21 33, L1 L2 Fn, COMBO_TERM_DEFAULT, COMBO_QUICK_TAP_MS)
Expand Down

0 comments on commit 965baab

Please sign in to comment.