Waybar
Waybar copied to clipboard
Dynamic background color
Is there a way to define the waybar's background color to match the opened app's color?
Of course this has a ton of caveats (like what happens if there are multiple windows, etc) but, in the simplest form, I'm looking for a way to set the color programmatically (even if I had to define the colors manually). For example, with a long-running process.
I've seen there are some GTK variables that can be used but they are related to the GTK theme instead of the screen's contents (unless I'm mistaken).
Here are some examples of what I mean.
This is how my bar looks like without windows open:
The background color is set to match the one in my terminal so that when the terminal is open, it looks like this:
However, if I open Spotify (for example), the color does not adjust dynamically: