2019-09-23 23:56:40 -04:00
|
|
|
# open terminal
|
2018-09-05 18:35:27 -04:00
|
|
|
rctrl - return : ~/.local/bin/kit new-window --window-type os
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# focus window
|
2020-08-30 21:14:27 -04:00
|
|
|
rctrl - j : yabai -m window --focus next || yabai -m window --focus first
|
|
|
|
rctrl - k : yabai -m window --focus prev || yabai -m window --focus last
|
|
|
|
cmd - tab : yabai -m window --focus next || yabai -m window --focus first
|
|
|
|
cmd + shift - tab : yabai -m window --focus prev || yabai -m window --focus last
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# swap window
|
2020-08-30 21:14:27 -04:00
|
|
|
rctrl + shift - j : yabai -m window --swap next || yabai -m window --swap first
|
|
|
|
rctrl + shift - k : yabai -m window --swap prev || yabai -m window --swap last
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# balance size of windows (mod =)
|
|
|
|
rctrl - 0x18 : yabai -m space --balance
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# make floating window fill screen
|
2020-01-15 23:42:12 -05:00
|
|
|
# shift + alt - up : yabai -m window --grid 1:1:0:0:1:1
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# make floating window fill left-half of screen
|
2020-01-15 23:42:12 -05:00
|
|
|
# shift + alt - left : yabai -m window --grid 1:2:0:0:1:1
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# make floating window fill right-half of screen
|
2020-01-15 23:42:12 -05:00
|
|
|
# shift + alt - right : yabai -m window --grid 1:2:1:0:1:1
|
2019-09-23 23:56:40 -04:00
|
|
|
|
|
|
|
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
|
2020-05-28 20:24:23 -04:00
|
|
|
rctrl + cmd - n : yabai -m space --create && \
|
2019-09-23 23:56:40 -04:00
|
|
|
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
|
|
|
|
yabai -m window --space "${index}" && \
|
|
|
|
yabai -m space --focus "${index}"
|
|
|
|
|
|
|
|
# create desktop and follow focus - uses jq for parsing json (brew install jq)
|
|
|
|
cmd + alt - n : yabai -m space --create && \
|
|
|
|
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
|
|
|
|
yabai -m space --focus "${index}"
|
|
|
|
|
|
|
|
# destroy desktop
|
|
|
|
cmd + alt - w : yabai -m space --destroy
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# fast focus desktop
|
2019-09-23 23:56:40 -04:00
|
|
|
rctrl - x : yabai -m space --focus recent
|
|
|
|
rctrl - z : yabai -m space --focus prev
|
|
|
|
rctrl - c : yabai -m space --focus next
|
|
|
|
rctrl - 1 : yabai -m space --focus 1
|
|
|
|
rctrl - 2 : yabai -m space --focus 2
|
|
|
|
rctrl - 3 : yabai -m space --focus 3
|
|
|
|
rctrl - 4 : yabai -m space --focus 4
|
|
|
|
rctrl - 5 : yabai -m space --focus 5
|
|
|
|
rctrl - 6 : yabai -m space --focus 6
|
|
|
|
rctrl - 7 : yabai -m space --focus 7
|
|
|
|
rctrl - 8 : yabai -m space --focus 8
|
|
|
|
rctrl - 9 : yabai -m space --focus 9
|
|
|
|
rctrl - 0 : yabai -m space --focus 10
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-10-16 22:41:13 -04:00
|
|
|
# send window to desktop
|
|
|
|
shift + cmd - x : yabai -m window --space recent
|
|
|
|
shift + cmd - z : yabai -m window --space prev
|
|
|
|
shift + cmd - c : yabai -m window --space next
|
|
|
|
shift + rctrl - 1 : yabai -m window --space 1
|
|
|
|
shift + rctrl - 2 : yabai -m window --space 2
|
|
|
|
shift + rctrl - 3 : yabai -m window --space 3
|
|
|
|
shift + rctrl - 4 : yabai -m window --space 4
|
|
|
|
shift + rctrl - 5 : yabai -m window --space 5
|
|
|
|
shift + rctrl - 6 : yabai -m window --space 6
|
|
|
|
shift + rctrl - 7 : yabai -m window --space 7
|
|
|
|
shift + rctrl - 8 : yabai -m window --space 8
|
|
|
|
shift + rctrl - 9 : yabai -m window --space 9
|
|
|
|
shift + rctrl - 0 : yabai -m window --space 10
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# focus monitor
|
2019-09-23 23:56:40 -04:00
|
|
|
rctrl - w : yabai -m display --focus 1
|
|
|
|
rctrl - e : yabai -m display --focus 2
|
|
|
|
rctrl - r : yabai -m display --focus 3
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-10-16 22:41:13 -04:00
|
|
|
# send window to monitor
|
|
|
|
rctrl + shift - w : yabai -m window --display 1
|
|
|
|
rctrl + shift - e : yabai -m window --display 2
|
|
|
|
rctrl + shift - r : yabai -m window --display 3
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# move window
|
|
|
|
shift + ctrl - a : yabai -m window --move rel:-20:0
|
|
|
|
shift + ctrl - s : yabai -m window --move rel:0:20
|
|
|
|
shift + ctrl - w : yabai -m window --move rel:0:-20
|
|
|
|
shift + ctrl - d : yabai -m window --move rel:20:0
|
|
|
|
|
|
|
|
# increase window size
|
|
|
|
shift + alt - a : yabai -m window --resize left:-20:0
|
|
|
|
shift + alt - s : yabai -m window --resize bottom:0:20
|
|
|
|
shift + alt - w : yabai -m window --resize top:0:-20
|
|
|
|
shift + alt - d : yabai -m window --resize right:20:0
|
|
|
|
|
|
|
|
# decrease window size
|
|
|
|
shift + cmd - a : yabai -m window --resize left:20:0
|
|
|
|
shift + cmd - s : yabai -m window --resize bottom:0:-20
|
|
|
|
shift + cmd - w : yabai -m window --resize top:0:20
|
|
|
|
shift + cmd - d : yabai -m window --resize right:-20:0
|
|
|
|
|
|
|
|
# set insertion point in focused container
|
|
|
|
ctrl + alt - h : yabai -m window --insert west
|
|
|
|
ctrl + alt - j : yabai -m window --insert south
|
|
|
|
ctrl + alt - k : yabai -m window --insert north
|
|
|
|
ctrl + alt - l : yabai -m window --insert east
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# rotate tree
|
2019-09-23 23:56:40 -04:00
|
|
|
alt - r : yabai -m space --rotate 90
|
|
|
|
|
|
|
|
# mirror tree y-axis
|
|
|
|
alt - y : yabai -m space --mirror y-axis
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# mirror tree x-axis
|
|
|
|
alt - x : yabai -m space --mirror x-axis
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# toggle desktop offset
|
2019-09-23 23:56:40 -04:00
|
|
|
alt - a : yabai -m space --toggle padding; yabai -m space --toggle gap
|
|
|
|
|
|
|
|
# toggle window parent zoom
|
|
|
|
alt - d : yabai -m window --toggle zoom-parent
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# toggle window fullscreen zoom
|
|
|
|
alt - f : yabai -m window --toggle zoom-fullscreen
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# toggle window native fullscreen
|
2019-09-23 23:56:40 -04:00
|
|
|
shift + alt - f : yabai -m window --toggle native-fullscreen
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# toggle window border
|
|
|
|
shift + alt - b : yabai -m window --toggle border
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# toggle window split type
|
2019-10-16 22:41:13 -04:00
|
|
|
# alt - e : yabai -m window --toggle split
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# float / unfloat window and center on screen
|
2019-09-23 23:56:40 -04:00
|
|
|
alt - t : yabai -m window --toggle float;\
|
|
|
|
yabai -m window --grid 4:4:1:1:2:2
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# toggle sticky
|
|
|
|
alt - s : yabai -m window --toggle sticky
|
2018-07-29 23:21:14 -04:00
|
|
|
|
2019-09-23 23:56:40 -04:00
|
|
|
# toggle sticky, float and resize to picture-in-picture size
|
2020-05-28 20:23:49 -04:00
|
|
|
# alt - p : yabai -m window --toggle sticky;\
|
|
|
|
# yabai -m window --grid 5:5:4:0:1:1
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
# change layout of desktop
|
2019-09-23 23:56:40 -04:00
|
|
|
rctrl - a : yabai -m space --layout bsp
|
2020-08-30 21:13:51 -04:00
|
|
|
rctrl - s : yabai -m space --layout stack
|
2019-09-23 23:56:40 -04:00
|
|
|
rctrl - d : yabai -m space --layout float
|
2018-07-29 23:21:14 -04:00
|
|
|
|
|
|
|
play : mpc toggle
|
|
|
|
rewind : mpc cdprev
|
|
|
|
fast : mpc next
|