Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Confusion about sway/window styling

Open ackstorm23 opened this issue 1 year ago • 0 comments

If I understand this correctly, the latter 4 styles have nothing to do with styling the window module itself but instead style the entire bar.

If you provided these options to style the entire bar, why not also provide them to style the module alone under the same conditions?

https://github.com/Alexays/Waybar/wiki/Module:-Sway#style-1

    #window
    window#waybar.empty When no windows is in the workspace
    #waybar.empty #window When no active windows is in the workspace
    window#waybar.solo When one window is in the workspace
    window#waybar.<app_id> Where app_id is the app_id or instance name like (chromium) of the only window in the workspace

 Please note that the window module applies additional css classes (currently empty, solo, app_id) to the whole waybar rather than the module widgets. The whole waybar is an element with the name "window" and the id "waybar", whereas the window module itself is an element with the name "label" and the id "window". For better insight regarding css hierarchy, consider GTK_DEBUG.

ackstorm23 avatar Aug 06 '22 03:08 ackstorm23