Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.8k stars 715 forks source link

Detecting if wofi is open #790

Open sp1ritCS opened 4 years ago

sp1ritCS commented 4 years ago

I was wondering, if I'd be possible to detect if wofi (or anything else that uses wlr-layer-shell) is open, and change the style accordingly.

It is possible with "normal" apps (like kitty)

window#waybar.kitty {
    background-color: #ECF0F1;
}

but the same is not possible for wofi

window#waybar.wofi {
    background-color: rgba(40, 38, 68, 0.9);
}
Anakael commented 4 years ago

Not work for me with kitty too. wofi have -n flag for run as normal window. Could you try it?

Anakael commented 4 years ago

window#waybar. as I see here https://github.com/Alexays/Waybar/wiki/Styling#bar-styling is just class name

sp1ritCS commented 4 years ago

wofi have -n flag for run as normal window.

That obviously works, I've already tried that. But I want to wofi to use wlr-layer-shell.