Skip to content

Commit

Permalink
special layer cleanup and soft-off relocation
Browse files Browse the repository at this point in the history
  • Loading branch information
NikodemMarek committed Sep 6, 2024
1 parent 828f012 commit 9aa31ed
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>

&mt { tapping-term-ms = <800>; };
&mt { tapping-term-ms = <500>; };

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

/ {
combos {
Expand Down Expand Up @@ -57,22 +59,6 @@
key-positions = <31 32>;
layers = <0 2 6>;
};

soft_off_left {
bindings = <&soft_off>;
key-positions = <0 20>;
layers = <0>;
require-prior-idle-ms = <3000>;
slow-release;
};

soft_off_right {
bindings = <&soft_off>;
key-positions = <9 29>;
layers = <0>;
require-prior-idle-ms = <3000>;
slow-release;
};
};

macros {
Expand Down Expand Up @@ -208,10 +194,10 @@

special {
bindings = <
&none &kp K_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &bootloader &bootloader &none &none &none &bt BT_CLR
&kp K_STOP &kp K_PREVIOUS &kp K_PLAY_PAUSE &kp K_NEXT &sys_reset &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
&out OUT_USB &out OUT_BLE &out OUT_TOG &ext_power EP_TOG &none &sys_reset &none &none &none &none
&tog 5 &trans &trans &trans
&none &kp K_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &soft_off &soft_off &none &none &none &bt BT_CLR
&kp K_STOP &kp K_PREVIOUS &kp K_PLAY_PAUSE &kp K_NEXT &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
&out OUT_USB &out OUT_BLE &out OUT_TOG &ext_power EP_TOG &none &none &none &none &none &none
&tog 5 &trans &trans &trans
>;

display-name = "special";
Expand Down

0 comments on commit 9aa31ed

Please sign in to comment.