-
Notifications
You must be signed in to change notification settings - Fork 8
/
combos.dtsi
67 lines (46 loc) · 2.12 KB
/
combos.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Combos
#undef COMBO_TERM
#define COMBO_TERM 40 // timeout of 40ms (default is 30ms if omitted)
#define HR_TIMEOUT 30 // timeout on homerow is better a bit shorter
/***********************
ALL LAYERS
***********************/
// NOTE: Other thumb key combos are in ./combos_34.dsti and combos_36.dtsi
// NOTE: Other mouse keys related combos in ./mouse.dtsi
// NOTE: Soft off combos in ./soft-off.dtsi
/***********************
BASE LAYER
***********************/
// CUT - Ctrl + X, active on base layer
ZMK_COMBO(cut, &kp LC(X), LB3 LB4, QWE COL ERG)
// COPY - Ctrl + C, active on base layer
ZMK_COMBO(copy, &kp LC(C), LB2 LB3, QWE COL ERG)
// PASTE - Ctrl + V, active on all layers
ZMK_COMBO(paste, &kp LC(V), LB1 LB2, QWE COL ERG)
// PRINT SCREEN - PrintScreen, active on base layer
ZMK_COMBO(printscreen, &kp PRINTSCREEN, RT3 RT4, QWE COL ERG)
// CAPS WORD - Both HR Shifts, active on base & accent layers
ZMK_COMBO(capsword, &caps_word, LM1 RM1, QWE QAC COL CAC ERG EAC)
// CAPS LOCK - Both HR Controls, active on base & accent layers
ZMK_COMBO(capslock, &kp CAPSLOCK, LM2 RM2, QWE QAC COL CAC ERG EAC)
// TMUX Prefix - active on base layer
ZMK_COMBO(tmux, &kp TMUX, LM2 LM3, QWE COL ERG, HR_TIMEOUT)
// TMUX Command - active on base layer
ZMK_COMBO(tmux_cmd, &TMUX_CMD, LM2 LM3 RM4, QWE COL ERG, HR_TIMEOUT)
// TMUX New Session - active on base layer
ZMK_COMBO(tmux_session, &TMUX_SESSION, LM2 LM3 LM4, QWE COL ERG, HR_TIMEOUT)
// Toggle Mouse Layer - active on base and mouse layers
ZMK_COMBO(toggle_mouse, &tog MOU, LT1 LT4, QWE MOU COL ERG)
// Toggle Game Layer - active on base and game layer
ZMK_COMBO(toggle_game, &tog GAM, RT1 RT4, QWE GAM COL ERG)
/***********************
SYMBOL LAYER
***********************/
// FAT ARROW - Left index & middle fingers on home row, active on symbol layer
ZMK_COMBO(fat_arrow, &FAT_ARROW, LM1 LM2, SYM)
// THIN ARROW - Left index & middle fingers on bottom row, active on symbol layer
ZMK_COMBO(arrow, &ARROW, LB1 LB2, SYM)
// Lesser than or Equal - active on symbol layer
ZMK_COMBO(lte, <E, RB1 RB2, SYM)
// Greater than or Equal - active on symbol layer
ZMK_COMBO(gte, >E, RB2 RB3, SYM)