Open 0xb7a7dd61 opened 7 months ago
I ended up getting a workaround by creating a script that checks that my space is on the expected display and if so, set the padding.
I also removed space labels because it was losing the label after sleeping (that was the biggest issue), which ended up applying padding to a random space.
Lastly I hooked up the script to all of the display+space event hooks (since it will only do something if the space+display are correct and set the padding.
This results in very very chatty commands, since I do 2 queries plus a setter, but it works and I haven't experienced / don't foresee any performance issues with it for now.
Been battling this a while thinking it was misconfiguration or not utilizing events/etc to solve. When specifying space padding, such as
yabai -m space 7 --label mySpaceLabel --padding rel:0:0:195:0
, I lose the padding when I return to my desk the next morning.I've tried the above command with --padding as well as left_padding with
yabai -m config --space mySpaceLabel left_padding 195
.Important context:
system_woke
,display_removed
,display_added
,space_changed
,window_moved
,window_destroyed
, andwindow_created
Reproducible yabairc: