From a137529cc510ffb687f9985776b51feb77de39ec Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Mon, 20 Feb 2023 19:04:10 +0000 Subject: [PATCH] swap RSHIFT and &mo 1 and create proper macros for i3 window switching --- config/corne.keymap | 56 ++++++++++++++++++++++++++++++++++++++------- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/config/corne.keymap b/config/corne.keymap index 838a1a2..2e4beaa 100644 --- a/config/corne.keymap +++ b/config/corne.keymap @@ -128,16 +128,56 @@ , <¯o_release &kp LGUI> ; }; + mcro_i3up: macro_i3_up { + label = "ZM_macro_i3_up"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = <¯o_press &kp LGUI> + , <¯o_tap &kp UP> + , <¯o_release &kp LGUI> + ; + }; + mcro_i3down: macro_i3_down { + label = "ZM_macro_i3_down"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = <¯o_press &kp LGUI> + , <¯o_tap &kp DOWN> + , <¯o_release &kp LGUI> + ; + }; + mcro_i3left: macro_i3_left { + label = "ZM_macro_i3_left"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = <¯o_press &kp LGUI> + , <¯o_tap &kp LEFT> + , <¯o_release &kp LGUI> + ; + }; + mcro_i3right: macro_i3_right { + label = "ZM_macro_i3_right"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = <¯o_press &kp LGUI> + , <¯o_tap &kp RIGHT> + , <¯o_release &kp LGUI> + ; + }; }; keymap { compatible = "zmk,keymap"; default_layer { bindings = < - &kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT - &sk CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT -&sk LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &sk RSHIFT - &td_i3 &sk LCTRL &kp SPACE &kp LC(BSPC) &sk RALT &mo 1 + &kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT + &sk CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT +&sk LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo 1 + &td_i3 &sk LCTRL &kp SPACE &kp LC(BSPC) &sk RALT &sk RSHIFT >; }; @@ -151,10 +191,10 @@ }; i3_layer { bindings = < -&trans &trans &trans &kp UP &trans &trans &trans &mcro_i3ws7 &mcro_i3ws8 &mcro_i3ws9 &trans &trans -&trans &trans &kp LEFT &kp DOWN &kp RIGHT &trans &trans &mcro_i3ws4 &mcro_i3ws5 &mcro_i3ws6 &trans &trans -&trans &trans &trans &trans &trans &trans &trans &mcro_i3ws1 &mcro_i3ws2 &mcro_i3ws3 &trans &trans - &trans &trans &mcro_i3ws0 &none &trans &none +&trans &trans &trans &mcro_i3up &trans &trans &trans &mcro_i3ws7 &mcro_i3ws8 &mcro_i3ws9 &trans &trans +&trans &trans &mcro_i3left &mcro_i3down &mcro_i3right &trans &trans &mcro_i3ws4 &mcro_i3ws5 &mcro_i3ws6 &trans &trans +&trans &trans &trans &trans &trans &trans &trans &mcro_i3ws1 &mcro_i3ws2 &mcro_i3ws3 &trans &trans + &trans &trans &mcro_i3ws0 &none &trans &none >; }; };