3 void tmux_prefix(void) {
4 register_code(KC_LCTL);
7 unregister_code(KC_LCTL);
8 unregister_code(KC_SPC);
11 void tmux_pane_zoom(void) {
15 unregister_code(KC_Z);
18 void tmux_pane_switch(uint16_t keycode) {
22 unregister_code(KC_Q);
24 register_code(keycode);
25 unregister_code(keycode);
28 void tmux_window_switch(uint16_t keycode) {
31 register_code(keycode);
32 unregister_code(keycode);
36 void matrix_scan_user(void) {
42 // SEQ_ONE_KEY, SEQ_TWO_KEYS, SEQ_THREE_KEYS
43 // anything you can do in a macro https://docs.qmk.fm/macros.html
44 // https://docs.qmk.fm/feature_leader_key.html
48 register_code(KC_LGUI);
49 register_code(KC_LSFT);
52 unregister_code(KC_3);
53 unregister_code(KC_LSFT);
54 unregister_code(KC_LGUI);
57 // Selective Screen Shot
59 register_code(KC_LGUI);
60 register_code(KC_LSFT);
63 unregister_code(KC_4);
64 unregister_code(KC_LSFT);
65 unregister_code(KC_LGUI);
68 // TMUX - shift to pane 1 and zoom
70 tmux_pane_switch(KC_1);
74 // TMUX - shift to pane 2 and zoom
76 tmux_pane_switch(KC_2);
80 // TMUX - shift to pane 3 and zoom
82 tmux_pane_switch(KC_3);
86 // TMUX - shift to last pane and zoom
87 SEQ_ONE_KEY(KC_SCOLON) {
90 register_code(KC_SCOLON);
91 unregister_code(KC_SCOLON);
96 // TMUX - shift to first window
98 tmux_window_switch(KC_1);
101 // TMUX - shift to second window
103 tmux_window_switch(KC_2);
106 // TMUX - shift to third window
108 tmux_window_switch(KC_3);