diff --git a/config/cradio.keymap b/config/cradio.keymap index e42f022..0e16d04 100644 --- a/config/cradio.keymap +++ b/config/cradio.keymap @@ -70,6 +70,18 @@ layers = <6>; require-prior-idle-ms = <2000>; }; + + symbols { + bindings = <&sl 2>; + key-positions = <31 32>; + layers = <0 5 6 7 3>; + }; + + symbols_ext { + bindings = <&sl 3>; + key-positions = <31 32>; + layers = <2>; + }; }; macros { @@ -123,15 +135,27 @@ }; }; + behaviors { + mod_hold: mod_hold { + compatible = "zmk,behavior-hold-tap"; + label = "MOD_HOLD"; + bindings = <&mo>, <&sl>; + + #binding-cells = <2>; + tapping-term-ms = <200>; + flavor = "tap-preferred"; + }; + }; + keymap { compatible = "zmk,keymap"; dvorak { bindings = < -&kp ENTER &kp TAB &kp BACKSPACE &kp P &kp Y &kp F &kp G &kp C &kp R &kp L -&kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S -&key_repeat &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z - &sl 1 &kp ESCAPE &kp SPACE &sl 2 +&kp ENTER &kp TAB &kp BACKSPACE &kp P &kp Y &kp F &kp G &kp C &kp R &kp L +&kp A &kp O &kp E &kp U &kp I &kp D &kp H &kp T &kp N &kp S +&key_repeat &kp Q &kp J &kp K &kp X &kp B &kp M &kp W &kp V &kp Z + &mod_hold 1 1 &kp ESCAPE &kp SPACE &sl 2 >; label = "dvorak"; @@ -194,10 +218,10 @@ qwerty { bindings = < -&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P -&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &key_repeat -&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp BACKSPACE &kp TAB &kp ENTER - &sl 1 &kp ESCAPE &kp SPACE &sl 2 +&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P +&kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &key_repeat +&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp BACKSPACE &kp TAB &kp ENTER + &mod_hold 1 1 &kp ESCAPE &kp SPACE &sl 2 >; }; diff --git a/update.sh b/update.sh index 35ad472..31a1f3b 100755 --- a/update.sh +++ b/update.sh @@ -4,7 +4,7 @@ echo "put the nice!nano into bootloader, flashing in 5 seconds..." sleep 5 echo "flashing..." -unzip -o -q $(find .tmp -name *.zip) -d .tmp/ +unzip -o -q $(find .tmp -name "*.zip") -d .tmp/ mkdir .tmp/nicenano/ sudo mount /dev/sda .tmp/nicenano/