-
Notifications
You must be signed in to change notification settings - Fork 8
/
macros.dtsi
52 lines (46 loc) · 1020 Bytes
/
macros.dtsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Fat arrow padded with spaces: ' => '
ZMK_MACRO(FAT_ARROW, bindings =
<&kp SPACE>,
<&kp EQUAL>,
<&kp RA(DOT)>,
<&kp SPACE>;
)
// Thin arrow padded with spaces: ' -> '
ZMK_MACRO(ARROW, bindings =
<&kp SPACE >,
<&kp MINUS>,
<&kp RA(DOT)>,
<&kp SPACE>;
)
// Greater than or equal to: ' >= '
ZMK_MACRO(GTE, bindings =
<&kp SPACE>,
<&kp GRTHAN>,
<&kp EQUAL>,
<&kp SPACE>;
)
// Less than or equal to: ' <= '
ZMK_MACRO(LTE, bindings =
<&kp SPACE>,
<&kp LETHAN>,
<&kp EQUAL>,
<&kp SPACE>;
)
// Tmux command: TMUX + ;
ZMK_MACRO(TMUX_CMD, bindings =
<&kp TMUX>,
<&kp LS(SEMI)>;
)
// Tmux new session: TMUX + ; + new -s + SPACE
ZMK_MACRO(TMUX_SESSION, bindings =
<&kp TMUX>,
<&kp LS(SEMI)>,
<&kp N &kp E &kp W &kp SPACE &kp MINUS &kp S &kp SPACE>;
)
// Keypress then return to specified layer
ZMK_MACRO_TWO_PARAM(KPT, bindings =
<¯o_param_1to1>,
<&kp MACRO_PLACEHOLDER>,
<¯o_param_2to1>,
<&to MACRO_PLACEHOLDER>;
)