From 237a8f6ac5e3dbbafc880f0d9742deb42feea0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Thu, 20 Mar 2025 18:41:24 +0100 Subject: [PATCH] fix(waybar): non-empty highlight missing Move the style to the bottom of the file with `lib.mkAfter`. --- modules/hm/gui/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/hm/gui/default.nix b/modules/hm/gui/default.nix index 10948b2..00d70ea 100644 --- a/modules/hm/gui/default.nix +++ b/modules/hm/gui/default.nix @@ -80,8 +80,10 @@ in settings = lib.mkIf config.jhome.styling.enable ( import ./waybar-settings.nix { inherit config lib; } ); + # Style overrides to highlight workspaces with windows style = - lib.optionalString config.jhome.styling.enable # css + lib.pipe + # css '' .modules-left #workspaces button { border-bottom: 3px solid @base01; @@ -89,7 +91,11 @@ in .modules-left #workspaces button.persistent { border-bottom: 3px solid transparent; } - ''; + '' + [ + (lib.optionalString config.jhome.styling.enable) + lib.mkAfter + ]; }; # Terminal wezterm = {