koekeishiya / yabai

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

Persist space labels #2393

Open jbriales opened 2 months ago

jbriales commented 2 months ago

I'm sometimes seeing labels in my spaces disappear, even though spaces themselves are still there (not sure about the root-cause yet, if it's about restarting the service, changing displays, ...). Are there any ideas or tips on persisting space labels beyond service lifetime?

jbriales commented 2 months ago

Following up on this, I couldn't find any open related issue: Did you consider options to persist space labels over sessions (e.g. on restart)

from-nibly commented 1 week ago

I'm also seeing labels randomly (not all of them) disappear when the lock screen comes up (after inactivity).

I started using labeled spaces when realizing that space indexes don't behave consistently. using yabai -m space 1 --display 1 seems to use the index of the array of spaces rather than the index property in the objects, and since they aren't sorted (and in fact rearrange when certain properties are changed) the same command run multiple times will affect different spaces.

I switched to using yabai -m space 1 --label one so I can keep the spaces consistent for commands like yabai -m space one --display 1. Now though I'm seeing some labels just disappear for no reason. I notice they disappear because my space switching hotkey just stops working cause it's using the command yabai -m space one --focus

I think there's a bunch of spookiness surrounding space persistence.