-
-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve items order in menu bar #2
Comments
This might not be a viable solution for SwiftBar, but there was a workaround that one user found for BitBar. The order that scripts are loaded in BitBar is apparently based on their inode number, which you can see with e.g. But I assume that it's possible to create a better solution eventually, because this is just a workaround. (On the other hand, SwiftBar could just create a "secret real plugins folder" somewhere in ~/Library, where it creates the symlinks to the plugins in the user-facing "fake plugins folder" in the right inode order, based on the order applied by the user in the GUI preferences.) Another thing is to make a plugin preserve the actual place in the menu bar. With BitBar, even when using tools like Bartender, plugins tend to lose the place you assigned them with CMD-click&drag. (But that's an issue for another time, I assume… and another topic… but it might be related.) |
I use Bartender to rearrange and remember my menu bar items, and Bartender also can't seem to save Swiftbar menu item positions. According to the Bartender developer, he's thinking that Swiftbar items don't get loaded in the same order and/or don't have the same ID every time they load, so nothing can keep track of where they should go. |
This is what I'd like to address in this issue
I don't know enough about it and not sure what ID they're referring to, I need to research |
Will this feature be included when the preferences redesign is done? This is a relevant issue for streaming plugins. |
I was researching this exact problem hence found this issue. After some testing I can declare that the order is not based on anything fixed in the filesystem or anywhere else. I quit and restart SwiftBar four times and got four different orders of my four plugins! The one behaviour I can repeat is to rename a script and it will move to the far left. Until you quit and restart at least. |
On BitBar, I preserve items order with defaults command: |
The text was updated successfully, but these errors were encountered: