koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
22.48k stars 630 forks source link

Send window and follow focus using space label #2305

Closed szfkamil closed 5 days ago

szfkamil commented 1 month ago

yabai can follow focus for a window if ^ is present before number in a space rule, eg. ^5

I tried adding a space label so that all windows bound to that space also follow focus:

yabai -m space ^5 --label media

This produced:

unknown command '^5' for domain 'space'

Is there a way to use labels for spaces so that you can assign labels instead of (which is just an alias)

So you can: yabai -m rule --add app="^Music$" manage=off space=media Instead of: yabai -m rule --add app="^Music$" manage=off space=^5

To send window and follow focus?

koekeishiya commented 1 month ago

yabai -m space 5 --label media

yabai -m rule --add app="^Music$" manage=off space=^media