Skip to content

Commit

Permalink
keymap: keyboard: Adjust volume with touch bar
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz committed May 31, 2023
1 parent 772fe30 commit 6954ac7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion config/hw75_keyboard.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

#define BASE 0
#define FN 1
#define TOUCH 2

&sl {
release-after-ms = <500>;
};

/ {
keymap {
Expand All @@ -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
>;
};

Expand All @@ -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
>;
};
};
};

0 comments on commit 6954ac7

Please sign in to comment.