From 757fa0b925e967a73051b0800158e5b1b3b7fac6 Mon Sep 17 00:00:00 2001 From: AJ <1754228+280Zo@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:35:54 -0800 Subject: [PATCH] optimize macros --- config/macros.dtsi | 142 +++++++++++++++++---------------------------- 1 file changed, 52 insertions(+), 90 deletions(-) diff --git a/config/macros.dtsi b/config/macros.dtsi index 1551b04..4afe36f 100644 --- a/config/macros.dtsi +++ b/config/macros.dtsi @@ -3,96 +3,81 @@ VSplit: VSplit { compatible = "zmk,behavior-macro"; #binding-cells = <0>; - bindings = <&kp LEFT_SHIFT &kp SEMI &kp LS(V) &kp LS(S) &kp LS(P) &kp RET>; + bindings = <&kp LS(SEMI) &kp LS(V) &kp LS(S) &kp LS(P) &kp RET>; }; HSplit: HSplit { compatible = "zmk,behavior-macro"; #binding-cells = <0>; - bindings = <&kp LEFT_SHIFT &kp SEMI &kp LS(S) &kp LS(P) &kp RET>; + bindings = <&kp LS(SEMI) &kp LS(S) &kp LS(P) &kp RET>; }; - shrug: shrug { - label = "SHRUG"; + shrug: shrug { // shrug emoji ¯\_(ツ)_/¯ compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; + wait-ms = <10>; + tap-ms = <20>; bindings - = <¯o_press &kp LSHFT> - // ¯ - , <¯o_tap &kp N0 &kp N2 &kp N5 &kp N0> - , <¯o_release &kp LSHFT> + // ¯ (Macron) + = <¯o_press &kp LCTRL &kp LSHFT> + , <¯o_tap &kp U> + , <¯o_release &kp LCTRL &kp LSHFT> + , <¯o_tap &kp N0 &kp N0 &kp A &kp F &kp SPC> // \ , <¯o_tap &kp BSLH> // _ , <¯o_tap &kp UNDER> // ( , <¯o_tap &kp LPAR> - // ツ - , <¯o_press &kp LSHFT> - , <¯o_tap &kp N3 &kp N0 &kp C &kp N4> - , <¯o_release &kp LSHFT> + // ツ (Katakana Letter Tu) + , <¯o_press &kp LCTRL &kp LSHFT> + , <¯o_tap &kp U> + , <¯o_release &kp LCTRL &kp LSHFT> + , <¯o_tap &kp N3 &kp N0 &kp C &kp N4 &kp SPC> // ) , <¯o_tap &kp RPAR> // _ , <¯o_tap &kp UNDER> // / , <¯o_tap &kp FSLH> - // ¯ - , <¯o_press &kp LSHFT> - , <¯o_tap &kp N0 &kp N2 &kp N5 &kp N0> - , <¯o_release &kp LSHFT> + // ¯ (Macron) + , <¯o_press &kp LCTRL &kp LSHFT> + , <¯o_tap &kp U> + , <¯o_release &kp LCTRL &kp LSHFT> + , <¯o_tap &kp N0 &kp N0 &kp A &kp F &kp SPC> ; }; - gcm: gcm { - label = "git commit WIP"; + gcm: gcm { // git commit WIP compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; - bindings - = <¯o_tap &kp G &kp I &kp T> // "git" - , <¯o_tap &kp SPACE> // space - , <¯o_tap &kp C &kp O &kp M &kp M &kp I &kp T> // "commit" - , <¯o_tap &kp SPACE> // space - , <¯o_tap &kp MINUS> // "-" - , <¯o_tap &kp A &kp M> // "am" - , <¯o_tap &kp SPACE> // space - , <¯o_tap &kp DQT> // " - , <¯o_tap &kp W &kp I &kp P> // "WIP" - , <¯o_tap &kp DQT> // " - ; + wait-ms = <10>; + tap-ms = <20>; + bindings = < + ¯o_tap &kp G &kp I &kp T &kp SPACE + &kp C &kp O &kp M &kp M &kp I &kp T &kp SPACE + &kp MINUS &kp A &kp M &kp SPACE + &kp DQT &kp W &kp I &kp P &kp DQT + >; }; - lgtm: lgtm { - label = "LGTM Approval"; + lgtm: lgtm { // LGTM Approval compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; - bindings - = <¯o_press &kp LSHFT> - , <¯o_tap &kp L &kp G &kp T &kp M> // "LGTM" - , <¯o_release &kp LSHFT> - , <¯o_tap &kp SPACE> // space - , <¯o_tap &kp MINUS> // "-" - , <¯o_tap &kp SPACE> // space - , <¯o_press &kp LSHFT> - , <¯o_tap &kp A> // "A" - , <¯o_release &kp LSHFT> - , <¯o_tap &kp P &kp P &kp R &kp O &kp V &kp E &kp D> // "pproved" - , <¯o_tap &kp EXCL> // "!" - ; + wait-ms = <10>; + tap-ms = <20>; + bindings = < + ¯o_tap &kp LS(L) &kp LS(G) &kp LS(T) &kp LS(M) + &kp SPACE &kp MINUS &kp SPACE + &kp LS(A) &kp P &kp P &kp R &kp O &kp V &kp E &kp D &kp EXCL + >; }; - py_iter: py_iter { - label = "PYTHON_ITERATION_WITH_INDEX"; + py_iter: py_iter { // PYTHON_ITERATION_WITH_INDEX compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; + wait-ms = <10>; + tap-ms = <20>; bindings = <¯o_tap &kp C &kp O &kp U &kp N &kp T> // "count" , <¯o_tap &kp SPACE> @@ -145,12 +130,11 @@ ; }; - js_iter: js_iter { - label = "JS_ITERATION_WITH_INDEX"; + js_iter: js_iter { // JS_ITERATION_WITH_INDEX compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; + wait-ms = <10>; + tap-ms = <20>; bindings = <¯o_tap &kp L &kp E &kp T &kp SPACE> // "let " , <¯o_tap &kp C &kp O &kp U &kp N &kp T> // "count" @@ -198,12 +182,11 @@ ; }; - shit: shit { - label = "SUDO_BANG_BANG"; + shit: shit { // SUDO_BANG_BANG compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; + wait-ms = <10>; + tap-ms = <20>; bindings = <¯o_tap &kp S &kp U &kp D &kp O> // "sudo" , <¯o_tap &kp SPACE> // space @@ -212,43 +195,22 @@ ; }; - find: find { - label = "FIND"; + find: find { // FIND compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; - bindings - = <¯o_press &kp LCTRL> - , <¯o_tap &kp F> - , <¯o_release &kp LCTRL> - ; + bindings = <¯o_press &kp LCTRL &kp F ¯o_release &kp LCTRL>; }; - clip_hist: clip_hist { - label = "CLIPBOARD_HISTORY"; + clip_hist: clip_hist { // CLIPBOARD_HISTORY compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; - bindings - = <¯o_press &kp LGUI> - , <¯o_tap &kp V> - , <¯o_release &kp LGUI> - ; + bindings = <¯o_press &kp LGUI &kp V ¯o_release &kp LGUI>; }; - new_dir: new_dir { - label = "NEW_DIRECTORY"; + new_dir: new_dir { // NEW_DIRECTORY compatible = "zmk,behavior-macro"; #binding-cells = <0>; - wait-ms = <30>; - tap-ms = <40>; - bindings - = <¯o_press &kp LCTRL &kp LSHFT> - , <¯o_tap &kp N> - , <¯o_release &kp LSHFT &kp LCTRL> - ; + bindings = <¯o_press &kp LCTRL &kp LSHFT &kp N ¯o_release &kp LCTRL &kp LSHFT>; }; }; }; \ No newline at end of file