-
Notifications
You must be signed in to change notification settings - Fork 0
/
.skhdrc
69 lines (53 loc) · 2.55 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
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
# close window
cmd + shift - q : yabai -m window --close
# focus monitor
cmd - 1 : yabai -m display --focus 1
cmd - 2 : yabai -m display --focus 2
cmd - 3 : yabai -m display --focus 3
# move window into monitor
cmd + shift - 1 : yabai -m window --display 1; yabai -m display --focus 1
cmd + shift - 2 : yabai -m window --display 2; yabai -m display --focus 2
cmd + shift - 3 : yabai -m window --display 3; yabai -m display --focus 3
# for Virtual Desktop
## move Desktop
cmd + ctrl - 1 : yabai -m query --spaces --space 1 | jq -r '.windows[0] // empty' | xargs yabai -m window --focus
cmd + ctrl - 2 : yabai -m query --spaces --space 2 | jq -r '.windows[0] // empty' | xargs yabai -m window --focus
cmd + ctrl - 3 : yabai -m query --spaces --space 3 | jq -r '.windows[0] // empty' | xargs yabai -m window --focus
cmd + ctrl - 4 : yabai -m query --spaces --space 4 | jq -r '.windows[0] // empty' | xargs yabai -m window --focus
cmd + ctrl - 5 : yabai -m query --spaces --space 5 | jq -r '.windows[0] // empty' | xargs yabai -m window --focus
## move window to Desktop
cmd + alt - 1 : yabai -m window --space 1; yabai -m space --display 1
cmd + alt - 2 : yabai -m window --space 2; yabai -m space --display 2
cmd + alt - 3 : yabai -m window --space 3; yabai -m space --display 3
cmd + alt - 4 : yabai -m window --space 4; yabai -m space --display 4
cmd + alt - 5 : yabai -m window --space 5; yabai -m space --display 5
## move window
cmd + shift - h : yabai -m window --warp west
cmd + shift - j : yabai -m window --warp south
cmd + shift - k : yabai -m window --warp north
cmd + shift - l : yabai -m window --warp east
# toggle window zoom
cmd + ctrl - f : yabai -m window --toggle zoom-fullscreen
# balance size of windows
cmd + ctrl - o : yabai -m space --balance
# make floating window fill screen
cmd + alt - up : yabai -m window --grid 1:1:0:0:1:1
# focus next/prev window
cmd + ctrl - j : yabai -m window --focus prev
cmd + ctrl - k : yabai -m window --focus next
# swap window
cmd + ctrl - s : yabai -m window --swap recent
# open terminal
# cmd + shift - return : alacritty --working-directory $HOME
cmd + shift - return : kitty
# layout
# Toggle between bsp and stack
cmd + shift - e : [ "$(yabai -m query --spaces --space | jq -r '.type')" = bsp ] \
&& yabai -m space --layout stack \
|| yabai -m space --layout bsp
# toggle window split type
cmd + ctrl - e : yabai -m window --toggle split
# 中央に寄せる
cmd - t : yabai -m window --toggle float && yabai -m window --grid 4:4:1:1:2:2
# restart
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"