Skip to content

Commit

Permalink
Add esc combo back
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbb committed Jan 4, 2024
1 parent 6a5b7ba commit 6a443ce
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
23 changes: 21 additions & 2 deletions config/3x5_2.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@
#define BRI_UP LC(C_BRI_UP)
#define BRI_DN LC(C_BRI_DN)

/* ╭────────────────────┬────────────────────╮ */
/* │ 0 1 2 3 4 │ 5 6 7 8 9 │ */
/* │ 10 11 12 13 14 │ 15 16 17 18 19 │ */
/* │ 20 21 22 23 24 │ 25 26 27 28 29 │ */
/* ╰───────────╮ 30 31 │ 32 33 ╭───────────╯ */
/* ╰────────┴────────╯ */

#define COMBO(NAME, BINDINGS, KEYPOS) \
combo_##NAME { \
timeout-ms = <50>; \
bindings = <BINDINGS>; \
key-positions = <KEYPOS>; \
layers = <0>; \
require-prior-idle-ms = <150>; \
};

&sk {
release-after-ms = <1000>;
quick-release;
Expand All @@ -47,7 +63,10 @@
};
};


combos {
compatible = "zmk,combos";
COMBO(esc, &kp ESC, 1 3)
};

keymap {
compatible = "zmk,keymap";
Expand All @@ -67,7 +86,7 @@
bindings = <
&kp ESC &kp PREV &kp LG(F) &kp NEXT &key_repeat &kp PG_UP &kp HOME &kp UP &kp END &kp CAPS
&sk LSFT &sk LGUI &sk LALT &sk LCTL &kp LC(G) &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp DEL
&kp RG(Z) &kp RG(X) &kp RG(C) &kp TAB &kp RG(V) &kp LA(BSPC) &kp BSPC &none &none &none
&kp RG(Z) &kp RG(X) &kp RG(C) &kp TAB &kp RG(V) &kp LA(BSPC) &kp BSPC &kp TAB &none &none
&trans &trans &kp RET &trans
>;
};
Expand Down
2 changes: 1 addition & 1 deletion config/hyperpotato.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Boost BLE power
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
# Sleep
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
Expand Down
8 changes: 8 additions & 0 deletions keymap-drawer/3x5_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion keymap-drawer/3x5_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ layers:
- Paste
- {t: '$$mdi:backspace-outline$$', h: Word}
- {t: '$$mdi:backspace-outline$$', h: Bspc}
- ''
- {t: '$$mdi:keyboard-tab$$', h: Tab}
- ''
- ''
- - {type: held}
Expand Down Expand Up @@ -99,3 +99,7 @@ layers:
- {t: ▽, type: trans}
- {t: ▽, type: trans}
- {type: held}
combos:
- p: [1, 3]
k: Esc
l: [DEF]

0 comments on commit 6a443ce

Please sign in to comment.