FelixKratz / SbarLua

A Lua API for SketchyBar
GNU General Public License v3.0
120 stars 10 forks source link

Help needed - How to order items #20

Closed waytoabv closed 5 months ago

FelixKratz commented 5 months ago

I think only very minimal changes to my dotfiles are needed to make it work with aerospace. Have a look at this as a starting point: https://nikitabobko.github.io/AeroSpace/goodness#show-aerospace-workspaces-in-sketchybar. I can not assist you much further because I don't use it myself.

The reorder, move and clone commands are not currently implemented in the lua module: #11, but I will soon do that.

If you keep the name of the space items the same you dont need to modify the regex. To fix the problem with position you can just preallocate some number of spaces and then only make them visible/invisible. Because the sorting in the bar depends on when the item was added.