Skip to content

Commit

Permalink
Added soft_off
Browse files Browse the repository at this point in the history
  • Loading branch information
xopclabs committed Sep 5, 2024
1 parent 7b8dce1 commit 824dacb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion config/cradio.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ CONFIG_ZMK_SLEEP=y
# 1.800.000 ms = 30 minutes
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000

# software switch
CONFIG_ZMK_PM_SOFT_OFF=y

# "Eager Debouncing"
# Trying to lower the input lag.
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=1
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5


#CONFIG_ZMK_USB_LOGGING=y
#CONFIG_ZMK_USB_LOGGING=y
4 changes: 2 additions & 2 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
&none &none &none &none &none &none &none &none &none &none
&kp N7 &kp N5 &kp N3 &kp N1 &kp N9 &kp N8 &kp N0 &kp N2 &kp N4 &kp N6
&none &none &none &none &none &none &none &out OUT_TOG &bt BT_SEL 0 &bt BT_CLR_ALL
&none &sl FUNC &none &none
&none &sl FUNC &none &soft_off
>;
};

Expand All @@ -62,7 +62,7 @@
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10
&sk LGUI &sk LALT &sk LSHIFT &sk LCTRL &kp C_VOL_UP &kp PSCRN &kp LEFT &kp DOWN &kp UP &kp RIGHT
&none &none &out OUT_TOG &kp DEL &kp C_VOL_DN &none &sl LANGCH &none &kp F11 &kp F12
&none &none &lt NUM ESC &none
&soft_off &none &lt NUM ESC &none
>;
};

Expand Down
6 changes: 5 additions & 1 deletion config/features/behaviors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
quick-release;
};

&soft_off {
hold-time-ms = <3000>;
};

/ {

behaviors {
Expand Down Expand Up @@ -71,4 +75,4 @@
bindings = <&out OUT_TOG>, <&bt BT_SEL 0>;
};
};
};
};

0 comments on commit 824dacb

Please sign in to comment.