Skip to content

Interactively change color theme of bar #159

Answered by FelixKratz
basbebe asked this question in Q&A
Discussion options

You must be logged in to vote

The most elegant solution to this would probably be to use the regex feature of SketchyBar. I implemented it for precisely such tasks:
The item <name> can be a regular expression inside of two '/': /<regex>/.
E.g.:

sketchybar --set '/.*/' icon.color=0xff000000

sets the icon color of all items matching the regex .* (so all items) to black. This works for any regex and all the other properties of course work as well. This way you can also set properties for any named groups if you employ the appropriate naming convention in your configuration file.

Also, you can subscribe to the AppleInterfaceThemeChangedNotification via a custom event that gets triggered instantaneously when the system the…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@basbebe
Comment options

@FelixKratz
Comment options

@basbebe
Comment options

@AlJohri
Comment options

@basbebe
Comment options

Answer selected by basbebe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants