78 lines
2.6 KiB
Plaintext
78 lines
2.6 KiB
Plaintext
|
# focus window
|
||
|
alt - h : yabai -m window --focus west
|
||
|
alt - l : yabai -m window --focus east
|
||
|
alt - k : yabai -m window --focus north
|
||
|
alt - j : yabai -m window --focus south
|
||
|
|
||
|
# swap managed window
|
||
|
shift + alt - h : yabai -m window --swap west
|
||
|
shift + alt - l : yabai -m window --swap east
|
||
|
shift + alt - k : yabai -m window --swap north
|
||
|
shift + alt - j : yabai -m window --swap south
|
||
|
|
||
|
# move managed window
|
||
|
# shift + cmd - h : yabai -m window --warp east
|
||
|
|
||
|
# Search
|
||
|
alt - d : open -a Alfred\ 4
|
||
|
|
||
|
# Close app
|
||
|
alt - q : yabai -m window --close
|
||
|
|
||
|
# balance size of windows
|
||
|
shift + alt - space : yabai -m space --balance
|
||
|
|
||
|
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
|
||
|
shift + cmd - n : yabai -m space --create && \
|
||
|
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
|
||
|
yabai -m window --space "${index}" && \
|
||
|
yabai -m space --focus "${index}"
|
||
|
|
||
|
shift + alt - 1 : yabai -m window --space 1
|
||
|
shift + alt - 2 : yabai -m window --space 2
|
||
|
shift + alt - 3 : yabai -m window --space 3
|
||
|
shift + alt - 4 : yabai -m window --space 4
|
||
|
shift + alt - 5 : yabai -m window --space 5
|
||
|
shift + alt - 6 : yabai -m window --space 6
|
||
|
shift + alt - 7 : yabai -m window --space 7
|
||
|
shift + alt - 8 : yabai -m window --space 8
|
||
|
shift + alt - 9 : yabai -m window --space 9
|
||
|
|
||
|
# focus monitor
|
||
|
ctrl + alt - z : yabai -m display --focus prev
|
||
|
# ctrl + alt - 3 : yabai -m display --focus 3
|
||
|
|
||
|
# send window to monitor and follow focus
|
||
|
# ctrl + cmd - c : yabai -m window --display next; yabai -m display --focus next
|
||
|
# ctrl + cmd - 1 : yabai -m window --display 1; yabai -m display --focus 1
|
||
|
|
||
|
# move floating window
|
||
|
# shift + ctrl - a : yabai -m window --move rel:-20:0
|
||
|
# shift + ctrl - s : yabai -m window --move rel:0:20
|
||
|
|
||
|
# increase window size
|
||
|
# shift + alt - a : yabai -m window --resize left:-20:0
|
||
|
# shift + alt - w : yabai -m window --resize top:0:-20
|
||
|
|
||
|
# decrease window size
|
||
|
# shift + cmd - s : yabai -m window --resize bottom:0:-20
|
||
|
# shift + cmd - w : yabai -m window --resize top:0:20
|
||
|
|
||
|
# set insertion point in focused container
|
||
|
# ctrl + alt - h : yabai -m window --insert west
|
||
|
|
||
|
# toggle window zoom
|
||
|
alt - f : yabai -m window --toggle zoom-fullscreen
|
||
|
|
||
|
# toggle window split type
|
||
|
# alt - e : yabai -m window --toggle split
|
||
|
|
||
|
# float / unfloat window and center on screen
|
||
|
alt - space : yabai -m window --toggle float;\
|
||
|
yabai -m window --grid 4:4:1:1:2:2
|
||
|
|
||
|
# toggle sticky(+float), topmost, picture-in-picture
|
||
|
# alt - p : yabai -m window --toggle sticky;\
|
||
|
# yabai -m window --toggle topmost;\
|
||
|
# yabai -m window --toggle pip
|