-
Notifications
You must be signed in to change notification settings - Fork 0
/
skhdrc
38 lines (30 loc) · 1.21 KB
/
skhdrc
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
# define mode
:: default : osascript -e 'display notification "'"$(date)"' normal mode" with title "skhd"'
:: yabai @ : osascript -e 'display notification "'"$(date)"' yabai mode" with title "skhd"'
# yabai mode
# this keybind for prevent hotkey collision and (hackly) solve
# in "yabai mode" skhd blacklist not working
ctrl + alt + cmd - b ; yabai
alt - b [
"iterm2" ~
"terminal" ~
* : skhd -k "ctrl + alt + cmd - b"
]
yabai < escape ; default
yabai < ctrl - c ; default
yabai < return : open -a 'iterm' .
yabai < alt - e : yabai -m window --toggle split
# (options: north, east, south, west)
yabai < h : yabai -m window --warp west
yabai < l : yabai -m window --warp east
yabai < k : yabai -m window --warp north
yabai < j : yabai -m window --warp south
# yabai -m window --stack west
yabai < shift - h : yabai -m window --stack west
yabai < shift - l : yabai -m window --stack east
yabai < shift - k : yabai -m window --stack north
yabai < shift - j : yabai -m window --stack south
# switch
yabai < tab : yabai -m window --focus stack.next || yabai -m window --focus stack.first
yabai < shift - tab : yabai -m window --focus stack.prev || yabai -m window --focus stack.last
yabai < f : yabai -m window --toggle float;