From d56a2bce2b82564c4a203457a11289dfe8389deb Mon Sep 17 00:00:00 2001 From: brink-lab Date: Sat, 2 Aug 2025 13:16:51 +0200 Subject: [PATCH] Opacity for indicators of empty waybar workspaces (#444) * Opacity for indicators of empty waybar workspaces Adds opacity to the workspace indicators on waybar, if the workspace is empty. Makes the indicator appear dimmer to make it easier to find empty workspaces. Purely cosmetic UI tweak. * Bump up opacity to be easier to read on light themes * Add migration * Apply grep to something! --------- Co-authored-by: David Heinemeier Hansson --- config/waybar/style.css | 4 ++++ migrations/1754133148.sh | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 migrations/1754133148.sh diff --git a/config/waybar/style.css b/config/waybar/style.css index 2f1c312..ae1a584 100644 --- a/config/waybar/style.css +++ b/config/waybar/style.css @@ -26,6 +26,10 @@ min-width: 9px; } +#workspaces button.empty { + opacity: 0.5; +} + #tray, #cpu, #battery, diff --git a/migrations/1754133148.sh b/migrations/1754133148.sh new file mode 100644 index 0000000..32ae1a1 --- /dev/null +++ b/migrations/1754133148.sh @@ -0,0 +1,6 @@ +echo "Update Waybar CSS to dim unused workspaces" + +if ! grep -q "#workspaces button\.empty" ~/.config/waybar/style.css; then + omarchy-refresh-config waybar/style.css + pkill -SIGUSR2 waybar +fi