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