Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

Order spaces by label #355

Closed exic closed 1 year ago

exic commented 1 year ago

Hi, I've renamed my spaces to "1:", "2:" etc. (and adapted my focus commands respectively) to be able to move a space to a different screen and keep the number it has. Now the order in your amazing bar widget is unfortunately off, is there a way I can have the spaces sorted by their label instead of their index?

exic commented 1 year ago

spaces=$($yabai_path -m query --spaces | jq -c 'sort_by(.label)') in init.sh sorts it correctly for me now :-)