yabai improvements

This commit is contained in:
Haak Saxberg 2023-05-25 14:04:48 -07:00
parent cacc21d78c
commit 043674c9bc

View file

@ -118,7 +118,7 @@ in
launchctl unload -F /System/Library/LaunchAgents/com.apple.WindowManager.plist > /dev/null 2>&1 &
# Don't bother tiling certain low-info app windows
yabai -m rule --add label="Finder" app="^Finder$" title="(Co(py|nnect)|Move|Info|Pref)" manage=off
yabai -m rule --add label="Finder" app="^Finder$" manage=off
yabai -m rule --add label="System Preferences" app="^System Preferences$" title=".*" manage=off
yabai -m rule --add label="System Settings" app="^System Settings$" title=".*" manage=off
yabai -m rule --add label="App Store" app="^App Store$" manage=off
@ -126,6 +126,7 @@ in
yabai -m rule --add label="Software Update" title="Software Update" manage=off
yabai -m rule --add label="About This Mac" app="System Information" title="About This Mac" manage=off
yabai -m rule --add label="Slack" app="^Slack$" title=".*" manage=off
yabai -m rule --add label="VLC" app="^VLC media player$" title=".*" manage=off
'';
};
@ -145,6 +146,10 @@ in
lalt - k : yabai -m window --focus north || yabai -m display --focus north
lalt - l : yabai -m window --focus east || yabai -m display --focus east
# Window movement
## Focused window to left 2/3
shift + lalt - h : yabai -m window --grid 1:3:0:0:2:1
# Moving windows between spaces: (Assumes 3 Spaces Max per Display)
shift + lalt - 1 : DISPLAY="$(yabai -m query --displays --display | jq '.index')";\
yabai -m window --space $((1+4*($DISPLAY - 1)))