Skip to content

Commit

Permalink
better tmux bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
keymap-editor[bot] committed Sep 19, 2024
1 parent 39003e3 commit 5bb1b40
Showing 1 changed file with 69 additions and 26 deletions.
95 changes: 69 additions & 26 deletions config/adv360.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,69 @@
bindings = <&kp RET>;
};

tmux_widget_1: new_macro {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp O>;
label = "NEW_MACRO";
};

tmux_widget_2: tmux_widget_2 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp I>;
label = "TMUX_WIDGET_2";
};

tmux_widget_3: tmux_widget_3 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp U>;
label = "TMUX_WIDGET_3";
};

tmux_widget_4: tmux_widget_4 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp Y>;
label = "TMUX_WIDGET_4";
};

tmux_widget_5: tmux_widget_5 {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp T>;
label = "TMUX_WIDGET_5";
};

tmux_window_close: tmux_new_window {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp LS(X)>;
label = "TMUX_NEW_WINDOW";
};

tmux_window_move_left: tmux_window_move_left {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp LEFT_BRACE>;
label = "TMUX_WINDOW_MOVE_LEFT";
};

tmux_window_move_right: tmux_window_move_right {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp RIGHT_BRACE>;
label = "TMUX_WINDOW_MOVE_RIGHT";
};

tmux_pane_close: tmux_pane_close {
compatible = "zmk,behavior-macro";
#binding-cells = <0>;
bindings = <&kp LC(B) &kp X>;
label = "TMUX_PANE_CLOSE";
};

#endif

hm: homerow_mods {
Expand Down Expand Up @@ -49,11 +112,11 @@

fn {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &none &mo 0 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&trans &kp LS(F1) &kp LS(F2) &kp LS(F3) &kp LS(F4) &kp LS(F5) &none &none &kp RS(F6) &kp RS(F7) &kp RS(F8) &kp RS(F9) &kp RS(F10) &trans
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &none &trans &trans &trans &trans &none &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
&trans &trans &trans &kp F11 &kp F12 &trans &trans &trans &trans &kp RS(F12) &kp RS(F11) &trans &trans &trans
&trans &trans &trans &kp C_PREV &kp C_NEXT &trans &trans &trans &trans &kp C_PIP &kp C_PLAY_PAUSE &kp C_BRIGHTNESS_DEC &kp C_BRIGHTNESS_INC &kp C_VOLUME_DOWN &kp C_VOLUME_UP &trans
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &none &mo 0 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&kp F12 &tmux_window_close &kp F10 &tmux_window_move_left &tmux_window_move_right &tmux_pane_close &none &none &tmux_widget_5 &tmux_widget_4 &tmux_widget_3 &tmux_widget_2 &tmux_widget_1 &kp F11
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &none &trans &trans &trans &trans &none &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
&trans &kp LS(F1) &kp LS(F2) &kp LS(F3) &kp LS(F4) &kp LS(F5) &trans &trans &kp LS(F6) &kp RS(F7) &kp RS(F8) &kp LS(F9) &kp LS(F10) &trans
&trans &trans &trans &kp C_PREV &kp C_NEXT &trans &trans &trans &trans &trans &kp C_PLAY_PAUSE &kp C_BRIGHTNESS_DEC &kp C_BRIGHTNESS_INC &kp C_VOLUME_DOWN &kp C_VOLUME_UP &trans
>;
};

Expand All @@ -71,27 +134,7 @@
bindings = <
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none
&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &to 4 &none &none &none &none &none
&none &none &none &none &macro_ver &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_DEC &bl BL_INC &none &none &none
>;
};

experimental {
bindings = <
&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 2 &mo 5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&hm LEFT_CONTROL ESC &kp A &hm LEFT_CONTROL S &hm LEFT_ALT D &hm LEFT_COMMAND F &kp G &none &kp LEFT_COMMAND &kp LALT &kp RIGHT_CONTROL &kp RIGHT_COMMAND &none &kp H &hm RIGHT_COMMAND J &hm RIGHT_ALT K &hm RIGHT_CONTROL L &kp SEMI &kp SQT
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp HOME &kp PG_UP &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
&mo 1 &kp LC(SPACE) &kp GRAVE &kp LEFT &kp RIGHT &kp BSPC &kp DEL &kp END &kp PG_DN &kp ENTER &kp SPACE &kp DOWN &kp UP_ARROW &kp LBKT &kp RBKT &mo 1
>;
};

experimental-mod {
bindings = <
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none
&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &to 0 &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none
&none &none &none &none &macro_ver &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_DEC &bl BL_INC &none &none &none
>;
Expand Down

0 comments on commit 5bb1b40

Please sign in to comment.