From 043674c9bcddd35717b916679d1ec480d746f95d Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Thu, 25 May 2023 14:04:48 -0700 Subject: [PATCH] yabai improvements --- nix/system/worktop/darwin-configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nix/system/worktop/darwin-configuration.nix b/nix/system/worktop/darwin-configuration.nix index b446b95..ffc9375 100644 --- a/nix/system/worktop/darwin-configuration.nix +++ b/nix/system/worktop/darwin-configuration.nix @@ -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)))