Dynamic Solid Bar Background #720
Unanswered
Mirage-Panda
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m making a custom status bar and I'm trying to make its background colour to adapt dynamically to my current wallpaper, like the native mac menubar does. In theory, I could make this happen by giving the sketchybar background colour a big blur radius, but it stops at around 50px so the bar isn't a single solid colour.
Right now, I’m extracting the average colour of the top strip of the wallpaper using ImageMagick and applying it as a solid fill.
This works, but it is complex and verbose, and isn't able to update as the wallpaper changes.
Below is my lua file that I am using to do this:
Beta Was this translation helpful? Give feedback.
All reactions