From d9fa40f0240e89cb08179c5d607d7bf312e9d232 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Tue, 21 Nov 2023 22:22:39 +0100 Subject: [PATCH] add compacted one-hand mode for use with mouse when many hotkeys are needed --- .../boards/shields/leko_pona/leko_pona.dtsi | 3 ++- .../boards/shields/leko_pona/leko_pona.keymap | 26 ++++++++++++++++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/config/boards/shields/leko_pona/leko_pona.dtsi b/config/boards/shields/leko_pona/leko_pona.dtsi index d96e0f9..2c37896 100644 --- a/config/boards/shields/leko_pona/leko_pona.dtsi +++ b/config/boards/shields/leko_pona/leko_pona.dtsi @@ -48,7 +48,8 @@ RC(0,10) RC(0,11) RC(0,12) RC(0,13) RC(0,14) RC(0,32) RC(0,3 , <&pro_micro 7 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> , <&pro_micro 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> - , <&gpio1 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> + , <&pro_micro 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> // use for functioning boards + //, <&gpio1 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)> // my broken, rewired right half ; }; }; \ No newline at end of file diff --git a/config/boards/shields/leko_pona/leko_pona.keymap b/config/boards/shields/leko_pona/leko_pona.keymap index 25c60d7..3bb995c 100644 --- a/config/boards/shields/leko_pona/leko_pona.keymap +++ b/config/boards/shields/leko_pona/leko_pona.keymap @@ -34,6 +34,8 @@ ZMK_UNICODE_PAIR(win_multi_o, A, N6, N6, E, F, F, F, D) // multiocular o #define GAME 5 #define WINDOWS 6 #define WIN_UNI 7 +#define LEFT_COMPACT 8 +#define LEFT_COMPACT_KEYS 9 / { conditional_layers { @@ -112,10 +114,10 @@ ZMK_UNICODE_PAIR(win_multi_o, A, N6, N6, E, F, F, F, D) // multiocular o // media + bluetooth + layer toggles + numpad l_meta { bindings = < -&kp C_VOL_DN &kp C_VOL_UP &tog WINDOWS &tog GAME &tog TOKI &kp KP_MULTIPLY &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS -&kp C_PREV &kp C_NEXT &none &kp C_PLAY &none &kp KP_DIVIDE &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_N0 -&trans &none &bt BT_SEL 0 &bt BT_NXT &bt BT_CLR &kp KP_DOT &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_MINUS - &trans &trans &trans &trans &trans &kp KP_ENTER +&kp C_VOL_DN &kp C_VOL_UP &tog WINDOWS &tog GAME &tog TOKI &kp KP_MULTIPLY &kp KP_N7 &kp KP_N8 &kp KP_N9 &kp KP_PLUS +&kp C_PREV &kp C_NEXT &tog LEFT_COMPACT &kp C_PLAY &none &kp KP_DIVIDE &kp KP_N4 &kp KP_N5 &kp KP_N6 &kp KP_N0 +&trans &none &bt BT_SEL 0 &bt BT_NXT &bt BT_CLR &kp KP_DOT &kp KP_N1 &kp KP_N2 &kp KP_N3 &kp KP_MINUS + &trans &trans &trans &trans &trans &kp KP_ENTER >; }; // toki pona @@ -153,5 +155,21 @@ ZMK_UNICODE_PAIR(win_multi_o, A, N6, N6, E, F, F, F, D) // multiocular o &trans &trans &trans &trans &trans &trans >; }; + l_left_compact { + 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 &mo LEFT_COMPACT_KEYS &trans &trans &trans + >; + }; + l_left_compact_keys { + bindings = < +&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &trans &trans &trans &trans +&kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans &trans +&trans &kp F1 &kp F2 &kp F3 &kp F4 &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans + >; + }; }; };