-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathal-ce_config.yaml
302 lines (233 loc) · 7.78 KB
/
al-ce_config.yaml
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
profile_name:
Karaml Config
title:
KaramlConfig
parameters:
{
"basic.to_if_alone_timeout_milliseconds": 100,
"basic.to_if_held_down_threshold_milliseconds": 101,
basic.to_delayed_action_delay_milliseconds: 150,
"basic.simultaneous_threshold_milliseconds": 75,
"mouse_motion_to_scroll.speed": 100,
}
templates:
rectangle: open -g "rectangle-pro://execute-action?name=%s"
aliases:
# https://www.vertex42.com/ExcelTips/unicode-symbols.html
⁙: ⌥ ⌃ ⇧
⏎: return_or_enter
screen_saver: shell(open -b com.apple.ScreenSaver.Engine) # Start Screen Saver
/base/:
tab: [tab, ⁙] # tab to left opt, ctrl, and shift when held
⁙ | ⏎: screen_saver # left opt, ctrl, shift, and enter starts screen saver
c | u: { unless Terminal$ iterm2$ kitty$: g | backspace }
a | O: { unless Terminal$ iterm2$ kitty$: up + m | right + enter }
a | o: { unless Terminal$ iterm2$ kitty$: m | right + enter }
(x) | end : [grave, /symnum/] # grave | SymNum Sublayer
(x) | caps_lock : [escape, /nav/] # ESC | Nav Sublayer
o | w : o | backspace # Delete Previous Word
o | f : o | delete # Delete Next Word
d + i + w : o | backspace + o | delete # 'Delete Inner Word'
o | p : m | v # Paste
# Enter | Control (any mods, lazy)
(x) | enter:
- enter
- left_control
- null
- [+lazy]
\: [\, left_option, null, [+lazy]]
# Various hypers when held
backspace : [backspace, mco | left_shift]
grave : [grave, mco | left_shift]
quote : [quote, mco | left_shift]
# (see JSON extension at the bottom of this file)
# left_shift: ["<", left_shift]
# right_shift: [">", right_shift]
h + `: shell(open ~)
right_control: [/nav/, right_control] # tap toggle nav layer | r_ctrl
o | right_shift: sticky(left_shift, toggle)
/nav/:
g: # Home | Git layer (waits for to_if_held_down threshold)
- home
- var(git_layer, 1) + notify(idgit,"Git Layer Enabled - c | g to toggle off")
o | quote: /mouse/
# User-defined RectanglePro Template
⌘ enter:
- rectangle( almost-maximize )
- ⇧ ⌘ | ⌃
⌘ x: rectangle( right-half )
⌘ z: rectangle( left-half )
⌘ r: rectangle( bottom-right )
⌘ a: rectangle( bottom-left )
⌘ w: rectangle( top-right )
⌘ q: rectangle( top-left )
⌘ f: rectangle( first-third )
⌘ p: rectangle( last-third )
⌘ s: rectangle( first-two-thirds )
⌘ d: rectangle( center-two-thirds )
⌘ t: rectangle( last-two-thirds )
# Vim navigation (any opt mods)
(x) | m: left
(x) | n: down
(x) | e: up
(x) | i: right
(x) ,: backspace
(x) .: delete
u : pgup
d : [pgdn, /win/] # Pgdn | win(d)ow control sublayer
o | u : o | pgup
o | d : o | pgdn
h | g : end
spacebar : underscore
x : app(Finder)
r : app(Brave Browser)
# Watch your commas!! Wrap them in quotes
# s: [app(Safari), '/sys/ + notify(sys, System Layer Enabled)', 'notify(sys, null )']
s: # Open Safari | Sys layer when held (does not wait for if_held_down threshold)
- app(Safari)
- /sys/ + notify(sysNotification,"System Layer Enabled")
- notify(sysNotification)
o | g : open(https://github.com/al-ce)
t : app(CotEditor)
c : app(Kitty)
f : [app(Firefox), /fn/] # Launch Firefox | functions sublayer
w : app(WezTerm)
y : app(System Preferences)
k : app(Karabiner-Elements)
kp- : app(Calca)
/git/:
# Three ways to turn off a notification:
# - notifyOff(idgit) # use notifyOff() with the id of the notification
# - notify(idgit, null) # pass null as the second argument to notify()
# - notify(idgit) # omit the second argument to notify()
# Turn off Git layer
c | g: var(git_layer, 0) + notifyOff(idgit)
# c | g: var(git_layer, 0) + notify(idgit)
# c | g: var(git_layer, 0) + notify(idgit, null)
# Various git commands, turn off git layer after executed
m: string(git checkout main) + CR + var(git_layer, 0) + notify(idgit)
l: string(git log) + CR + var(git_layer, 0) + notify(idgit)
s: string(git status) + CR + var(git_layer, 0) + notify(idgit)
S: string(git stash pop) + CR + var(git_layer, 0) + notify(idgit)
a: string(git add .) + CR + var(git_layer, 0) + notify(idgit)
c: string(git commit -m ")+ var(git_layer, 0) + notify(idgit)
p: string(git pull) + CR + var(git_layer, 0) + notify(idgit)
P: string(git push) + CR + var(git_layer, 0) + notify(idgit)
<: string(cd ..) + CR
/win/:
# Move windows (BTT shortcuts)
m : rg | m
i : rg | i
e : rg | e
n : rg | n
pgdn : rg | pgdn
. : <rg-.>
"," : <rg-,>
"h" : rg | h
/mouse/:
m: mouse(x, -2000)
n: mouse(y, 2000)
e: mouse(y, -2000)
i: mouse(x, 2000)
c | m: mouse(horizontal_wheel, 100)
c | n: mouse(vertical_wheel, -100)
c | e: mouse(vertical_wheel, 100)
c | i: mouse(horizontal_wheel, -100)
s: mouse(speed_multiplier, 2.5)
/sys/:
mocs | q: [ null, sm | q, null, [2000] ] # 2s delay on Log-Out
# o | s: var(sys_layer, 0)
# Set English / Greek input source with AppleScript style notification
o | e: shnotify(English, ==KEYBOARD==) + input(en)
o | g: 'shnotify(GreekPolytoniic, ==KEYBOARD==) + input({ "input_source_id": "com.apple.keylayout.GreekPolytonic", "language": "el" })'
c | e: <cm-[> # Emoji Picker
t: mission_control
i: o | tab
e: volume_increment
n: volume_decrement
m: mute
o | m: [mute, null, mute] # Toggle mute when held
oC | m: [null, null, mute] # Only send mute on release/after key up
k : play_or_pause
j : rewind
"[" : fastforward
"," : display_brightness_increment
h : display_brightness_decrement
q : CM | q # Lock Screen
u : shell(open -b com.apple.ScreenSaver.Engine) # Start Screen Saver
y : app(togglemenubar) # Show and Hide Menubar
# Notification displays when held
o | i: ["notify(idHello, Hello!)", null, "notify(idHello)"]
/fn/:
(x) | h: f1
(x) | ,: f2
(x) | .: f3
(x) | n: f4
(x) | e: f5
(x) | i: f6
(x) | l: f7
(x) | u: f8
(x) | y: f9
(x) | 7: f10
(x) | 8: f11
(x) | 9: f12
/symnum/:
(x) | caps_lock: escape
(x) | enter: [enter, left_control]
(x) | space: space
(x) | j: "0"
(x) | h: "1"
(x) | ,: "2"
(x) | .: "3"
(x) | n: "4"
(x) | e: "5"
(x) | i: "6"
(x) | l: "7"
(x) | u: "8"
(x) | y: "9"
(x) | k: ","
(x) | [: .
(x) | /: /
(x) | m: "="
(x) | o: ;
(x) | a: ":"
s : (
s | s: "{"
t : )
s | t: "}"
c : "["
s | c: <
d : "]"
s | d: ">"
(x) | r: "-"
(x) | g: <s-=> # +
(x) | quote: quote
(x) | w: s | quote
(x) | f: "{"
(x) | p: "}"
(x) | x: \
(x) | v: "`"
(x) | backspace: backspace
# If the Karaml style config is too limiting or if a rule gets too comlex to be
# worth it, you can append slightly modified JSON in the Karabiner JSON style
# to this YAML map. Differences:
# - Quotes are optional, but check the YAML docs for escaping rules
# - Instead of separating rules with commas, as you would in JSON, use the YAML
# sequence syntax, which is a dash followed by a space, then the rule
json:
- {
# No quotes in this rule, but note the single quotes around the
# description, required because of the comma, i.e. `if tapped,`
description: 'Right Shift to > if tapped, Shift if held',
from: { key_code: right_shift },
to: { key_code: right_shift, lazy: true },
to_if_alone: { key_code: period, modifiers: [right_shift] },
type: basic,
}
- {
"description": "Left Shift to < if tapped, Shift if held",
"from": { "key_code": "left_shift" },
"to": { "key_code": "left_shift", "lazy": true },
"to_if_alone": { "key_code": "comma", "modifiers": ["left_shift"] },
"type": "basic",
}