-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompiled_functional_tutorial.kbd
190 lines (190 loc) · 3.55 KB
/
compiled_functional_tutorial.kbd
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
(defcfg
input (device-file "/dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-kbd")
output (uinput-sink "Logitech KMonad Output" "/run/current-system/sw/bin/sleep 1 && /run/current-system/sw/bin/setxkbmap -option compose:ralt")
cmp-seq rctrl
cmp-seq-delay 5
fallthrough true
allow-cmd true
)
(defalias
volume.log-key (cmd-button "echo \"Log button pressed!\" > $ENV_VAR_LOG_FILE")
volume.mute (cmd-button "qdbus org.kde.kglobalaccel /component/kmix invokeShortcut mute")
volume.osd-toggle (cmd-button "~/.config/kmonad/volume/toggle_osd.sh")
volume.down (cmd-button "~/.config/kmonad/volume/volume.sh -" "~/.config/kmonad/volume/volume.sh 0")
volume.up (cmd-button "~/.config/kmonad/volume/volume.sh +" "~/.config/kmonad/volume/volume.sh 0")
volume.exit (layer-rem volume)
scroll.arrow-keys.exit (layer-rem scroll.arrow-keys)
scroll.arrow-keys.enter (layer-add scroll.arrow-keys)
scroll.speed-down (cmd-button "~/.config/kmonad/scroll/scroll_speed.sh 200" "~/.config/kmonad/scroll/scroll_speed.sh 0")
scroll.speed-up (cmd-button "~/.config/kmonad/scroll/scroll_speed.sh 50" "~/.config/kmonad/scroll/scroll_speed.sh 0")
scroll.right (cmd-button "~/.config/kmonad/scroll/scroll.sh h +" "~/.config/kmonad/scroll/scroll.sh h 0")
scroll.down (cmd-button "~/.config/kmonad/scroll/scroll.sh v +" "~/.config/kmonad/scroll/scroll.sh v 0")
scroll.up (cmd-button "~/.config/kmonad/scroll/scroll.sh v -" "~/.config/kmonad/scroll/scroll.sh v 0")
scroll.left (cmd-button "~/.config/kmonad/scroll/scroll.sh h -" "~/.config/kmonad/scroll/scroll.sh h 0")
scroll.exit (layer-rem scroll)
scroll.enter (layer-add scroll)
volume.enter #(@scroll.enter (cmd-button "echo 1 > /tmp/volume_script_osd_file") (layer-add volume))
run.exit #((layer-rem run) (cmd-button "killall st"))
run.runner (cmd-button "~/.config/kmonad/runner/runner.sh")
run.enter #(@run.runner (layer-add run))
homerow-mods.enter (layer-switch homerow-mods)
homerow-mods.exit (layer-switch base)
homerow-mods.lctrl-or-escape (tap-hold-next-release 125 esc lctl)
leader.leader_next (around-next (layer-toggle leader))
leader.enter (tap-hold-next-release 250 @leader.leader_next lmet)
discord (cmd-button "wmctrl -a discord || /usr/bin/Discord")
window-switcher (cmd-button "rofi -noplugins -modi window -show window -lines 5 --normal-window")
)
(defsrc
Backslash
CapsLock
LeftMeta
LeftShift
Tab
d
h
j
k
l
m
q
r
s
v
)
(deflayer base
(tap-hold 50 @leader.enter XX)
_
@leader.enter
_
_
_
_
_
_
_
_
_
_
_
_
)
(deflayer run
_
_
@run.exit
_
_
_
_
_
_
_
_
_
_
_
_
)
(deflayer enter-layers
_
_
_
_
_
_
_
_
_
_
_
_
@run.enter
@scroll.enter
@volume.enter
)
(deflayer scroll.arrow-keys
_
_
@scroll.arrow-keys.exit
_
_
_
Left
Down
Up
Right
_
_
_
_
_
)
(deflayer volume
_
_
@volume.exit
_
_
_
_
@volume.down
@volume.up
@volume.log-key
@volume.mute
@volume.osd-toggle
@run.enter
@scroll.enter
@volume.enter
)
(deflayer homerow-mods
_
@homerow-mods.lctrl-or-escape
@homerow-mods.exit
_
_
_
_
_
_
_
_
_
_
_
_
)
(deflayer leader
XX
XX
LeftMeta
XX
XX
@discord
@homerow-mods.enter
XX
XX
XX
XX
@window-switcher
@run.enter
@scroll.enter
@volume.enter
)
(deflayer scroll
_
@scroll.speed-down
@scroll.exit
@scroll.speed-up
@scroll.arrow-keys.enter
_
@scroll.left
@scroll.down
@scroll.up
@scroll.right
_
_
@run.enter
@scroll.exit
@volume.enter
)