From 6954ac75b72b1f9d612a1c0d4da24b79e859af1c Mon Sep 17 00:00:00 2001 From: XiNGRZ Date: Wed, 31 May 2023 18:24:40 +0800 Subject: [PATCH] keymap: keyboard: Adjust volume with touch bar --- config/hw75_keyboard.keymap | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/config/hw75_keyboard.keymap b/config/hw75_keyboard.keymap index 9387484e..93329ddf 100644 --- a/config/hw75_keyboard.keymap +++ b/config/hw75_keyboard.keymap @@ -9,6 +9,11 @@ #define BASE 0 #define FN 1 +#define TOUCH 2 + +&sl { + release-after-ms = <500>; +}; / { keymap { @@ -22,7 +27,7 @@ &kp CLCK &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT &kp RET &kp PG_UP &kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT &kp UP &kp PG_DN &kp LCTRL &kp LGUI &kp LALT &kp SPACE &kp RALT &mo FN &kp RCTRL &kp LEFT &kp DOWN &kp RIGHT - &none &none &none &none &none &none + &none &sl TOUCH &sl TOUCH &sl TOUCH &sl TOUCH &none >; }; @@ -38,5 +43,18 @@ &trans &trans &trans &trans &trans &trans >; }; + + touch { + label = "Touch"; + bindings = < + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &kp C_VOL_DN &none &none &none &none &kp C_VOL_UP + >; + }; }; };