aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjack <[email protected]>2023-03-28 18:09:06 -0600
committerjack <[email protected]>2023-03-28 18:09:06 -0600
commitb15789ad97328db1f7a6e4fb1898a7501c9c72d7 (patch)
treea3e8dbf9e8294ddb5d1286f6cae75fee7946b1de
parenta1a3bda3543555fb7774c046a44919ce3ffe9eda (diff)
downloadzmk_build-b15789ad97328db1f7a6e4fb1898a7501c9c72d7.tar.gz
zmk_build-b15789ad97328db1f7a6e4fb1898a7501c9c72d7.zip
misc
-rwxr-xr-xbuild.sh44
-rw-r--r--config/splitkb_aurora_sweep.keymap11
2 files changed, 34 insertions, 21 deletions
diff --git a/build.sh b/build.sh
index 8af860d..231beb9 100755
--- a/build.sh
+++ b/build.sh
@@ -28,35 +28,41 @@ build() {
flash() {
read -p "flash? (y/n) " -n 1 -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
+ if (( $3 )); then
+ printf "\nflashing left half...\n"
+ fi
sleep 10
- sudo mount /dev/sdb /tmp/disk
- cp ~/$1.uf2 /tmp/disk/$2
- echo "success :^)"
+ doas mount /dev/sdb /tmp/disk
+ doas cp ~/$1.uf2 /tmp/disk
+ doas umount /dev/sdb
+ printf "success :^)"
if (( $3 )); then
+ printf "\nflashing right half...\n"
sleep 30
- sudo mount /dev/sdb /tmp/disk
- cp ~/$4.uf2 /tmp/disk/$2
- echo "success :^)"
+ doas mount /dev/sdb /tmp/disk
+ doas cp ~/$2.uf2 /tmp/disk
+ doas umount /dev/sdb
+ printf "success :^)"
fi
fi
}
-echo -e "\n"
+printf "\n"
PS3="choose keyboard to build: "
options=("corne" "revxlp" "sweep" "settings reset" "quit")
select opt in "${options[@]}"
do
case $opt in
"corne")
- echo "building corne firmware..."
+ printf "building corne firmware...\n"
build nice_nano corne_left $CONFIG_DIR
build nice_nano_v2 corne_right $CONFIG_DIR
- flash corne_left_nice_nano NICENANO 2 corne_right_nice_nano_v2
- echo -e "\ncomplete :^)"
+ flash corne_left_nice_nano corne_right_nice_nano_v2 2
+ printf "\ncomplete :^)"
break
;;
"revxlp")
- echo "building revxlp firmware..."
+ printf "building revxlp firmware...\n"
cp config/corne.keymap revxlp/revxlp.keymap
cp util.h $ZMK_DIR/app/boards/shields
if [ ! -L $LINK ]; then
@@ -65,29 +71,29 @@ do
build seeeduino_xiao_ble revxlp
rm revxlp/revxlp.keymap
rm $ZMK_DIR/app/boards/shields/util.h
- flash revxlp_seeduino_xiao_ble XIAO-SENSE
- echo -e "\ncomplete :^)"
+ flash revxlp_seeduino_xiao_ble
+ printf "\ncomplete :^)"
break
;;
"sweep")
- echo "building aurora sweep firmware..."
+ printf "building aurora sweep firmware...\n"
build nice_nano_v2 splitkb_aurora_sweep_left $CONFIG_DIR
build nice_nano_v2 splitkb_aurora_sweep_right $CONFIG_DIR
- flash splitkb_aurora_sweep_left_nice_nano_v2 NICENANO 2 splitkb_aurora_sweep_right_nice_nano_v2
- echo -e "\ncomplete :^)"
+ flash splitkb_aurora_sweep_left_nice_nano_v2 splitkb_aurora_sweep_right_nice_nano_v2 2
+ printf "\ncomplete :^)"
break
;;
"settings reset")
- echo "building settings reset firmware..."
+ printf "building settings reset firmware...\n"
build nice_nano settings_reset v1
build nice_nano_v2 settings_reset v2
build seeeduino_xiao_ble settings_reset xiao
- echo -e "\ncomplete :^)"
+ printf "\ncomplete :^)"
break
;;
"quit")
break
;;
- *) echo "invalid option: $REPLY";;
+ *) printf "invalid option: $REPLY";;
esac
done
diff --git a/config/splitkb_aurora_sweep.keymap b/config/splitkb_aurora_sweep.keymap
index d35bc90..3a2f27e 100644
--- a/config/splitkb_aurora_sweep.keymap
+++ b/config/splitkb_aurora_sweep.keymap
@@ -26,7 +26,7 @@
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0
HRML(EXCL, AT, HASH, DLLR) &kp PRCNT &kp CARET HRMR(AMPS, ASTRK, LPAR, RPAR)
&kp C_VOL_DN &kp TAB &kp CAPS &kp TILDE &kp GRAVE &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp C_VOL_UP
- &trans &trans &trans &trans
+ &trans &trans &trans &pnp
>;
};
2 {
@@ -44,10 +44,17 @@
label = "HOMEROW_MODS";
#binding-cells = <2>;
tapping-term-ms = <130>;
- quick_tap_ms = <0>;
+ quick-tap-ms = <160>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
+ pnp: play_next_prev {
+ compatible = "zmk,behavior-tap-dance";
+ label = "PLAY_NEXT_PREV";
+ #binding-cells = <0>;
+ tapping-term-ms = <210>;
+ bindings = <&kp C_PLAY>, <&kp C_NEXT>, <&kp C_PREV>;
+ };
TAP_DANCE(bsls_pipe, &kp BSLH, &kp PIPE)
TAP_DANCE(quot_dquo, &kp SQT, &kp DQT)
TAP_DANCE(cbrkt, &kp LBRC, &kp RBRC)