From 867514362a982a93029e730be49e53a9517b6bfc Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Mon, 2 Sep 2024 22:07:47 +0200 Subject: [PATCH] improve workspace selector styling --- .../panels/eww/configDir/bottomBar/bottomBar.yuck | 3 ++- .../home/panels/eww/configDir/eww.css | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/desktop-environment/home/panels/eww/configDir/bottomBar/bottomBar.yuck b/modules/desktop-environment/home/panels/eww/configDir/bottomBar/bottomBar.yuck index 45d7e9f..6c31965 100644 --- a/modules/desktop-environment/home/panels/eww/configDir/bottomBar/bottomBar.yuck +++ b/modules/desktop-environment/home/panels/eww/configDir/bottomBar/bottomBar.yuck @@ -45,8 +45,9 @@ :class "workspaces" (for workspace in workspaces (button + :class "${workspace.urgent ? "urgent" : ""} ${workspace.focused ? "focused" : 0}" :onclick "swaymsg workspace ${workspace.name}" - (label :markup "${workspace.name}") + (label :text "${workspace.name}") ) ) ) diff --git a/modules/desktop-environment/home/panels/eww/configDir/eww.css b/modules/desktop-environment/home/panels/eww/configDir/eww.css index 851f731..229ec7e 100644 --- a/modules/desktop-environment/home/panels/eww/configDir/eww.css +++ b/modules/desktop-environment/home/panels/eww/configDir/eww.css @@ -4,4 +4,17 @@ label { font: 14pt "FiraCode Nerd Font"; +} + +.workspaces button { + border: 0px; + background-color: #282828; +} + +.workspaces button.urgent { + background-color: #cc241d; +} + +.workspaces button.focused { + background-color: #504935; } \ No newline at end of file