Skip to content

Commit 408c441

Browse files
committed
Switch to smart toggle behavior
1 parent e35ee2f commit 408c441

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ This widget is a ZMK module housed in [`zmk-rgbled-widget`](https://github.com/c
4141

4242
While the `main` branch of this repo uses upstream ZMK `main`, in the `corneish-zen` [branch](https://github.com/caksoylar/zmk-config/tree/corneish-zen) I use a custom ZMK branch referenced in [west.yml](config/west.yml) which contains [display improvements for the Corne-ish Zen](https://gist.github.com/caksoylar/c411313990978e1903c244f03039187a).
4343

44-
My keymap also uses a swapper key for single button window switching, defined using [the tri-state behavior module](https://github.com/caksoylar/zmk-tri-state).
44+
My keymap also uses a swapper key for single button window switching, defined using [the smart toggle behavior module](https://github.com/caksoylar/zmk-smart-toggle).

config/includes/3x5.dtsi

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@
9999

100100
// Swapper for smart alt+tab
101101
swapper: swapper {
102-
compatible = "zmk,behavior-tri-state";
102+
compatible = "zmk,behavior-smart-toggle";
103103
#binding-cells = <0>;
104-
bindings = <&kt LALT>, <&kp TAB>, <&kt LALT>;
105-
ignored-key-positions = <SWP_POS>;
104+
bindings = <&kp LALT>, <&kp TAB>;
105+
ignored-key-positions = <SWP_POS RM1 RM2 RM3 RT2>;
106106
};
107107

108108
rst_boot: rst_boot {

config/west.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ manifest:
1212
- name: zmk-rgbled-widget
1313
remote: caksoylar
1414
revision: main
15-
- name: zmk-tri-state
15+
- name: zmk-smart-toggle
1616
remote: caksoylar
1717
revision: main
1818
self:

0 commit comments

Comments
 (0)