Alexays / Waybar

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

Add workspace styles for multiple monitors #2249

Open thatanjan opened 1 year ago

thatanjan commented 1 year ago

image

I am using a external monitor with my laptop. I am tring to add style to the workspace button which is visible on each monitor doesn't matter which monitor is focused. For example, If workspace 1 is opened on monitor 1 and workspace 2 is opened on monitor 2, then I want both workspace buttons to have yellow background. Also I want to add a different background color to the workspace button which is visible on the other monitor.

Current behaviour: Only one workspace button is styled on both monitor's status bar. The workspace is visible on the focused monitor. I have added the styles using the #workspaces button.active selector. This can be easily done in qtile. But I couldn't find a solution for waybar. Please help me.

Waybar version: Waybar v0.9.17-159-ga9a22234 (branch 'master') WM: Hyprland(Sway) Distro: ArcoLinux

Waybar Config: https://gist.github.com/thatanjan/ce42b38b8b7bae98b47fc3602a7a8d4c

Thanks in Advance and sorry for the not so good explanation.

khaneliman commented 1 year ago

This was resolved with PR https://github.com/Alexays/Waybar/pull/2408, you can add button.visible styling to indicate which workspaces are visible on other monitors.

PhilT commented 4 months ago

Can this be closed?