From d1cd641137dc6f31e28e540449b02b24a29b8bfb Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 14 Feb 2023 18:47:17 -0800 Subject: [PATCH] thinkpads: polybar: fix theme import --- hosts/thinkpads/polybar.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/hosts/thinkpads/polybar.nix b/hosts/thinkpads/polybar.nix index 4b30e34..b20d910 100644 --- a/hosts/thinkpads/polybar.nix +++ b/hosts/thinkpads/polybar.nix @@ -1,8 +1,8 @@ { pkgs, lib, ... }: -let - colors = import ../../colors; -in +let + theme = import ../../modules/theme; +in with theme.colors; { home.packages = with pkgs; [ lm_sensors ]; services.polybar.config = { @@ -20,12 +20,12 @@ in format-low = " "; - label-charging = "%{F${colors.primary}}AC%{F-} %percentage%%"; - label-discharging = "%{F${colors.primary}}BAT%{F-} %percentage%%"; - label-full = "%{F${colors.primary}}AC%{F-}"; + label-charging = "%{F${primary}}AC%{F-} %percentage%%"; + label-discharging = "%{F${primary}}BAT%{F-} %percentage%%"; + label-full = "%{F${primary}}AC%{F-}"; - animation-low-0 = "%{F${colors.primary}}BAT%{F-}"; - animation-low-1 = "%{F${colors.alert}}LOW%{F-}"; + animation-low-0 = "%{F${primary}}BAT%{F-}"; + animation-low-1 = "%{F${alert}}LOW%{F-}"; full-at = 96; low-at = 10; # default