{ pkgs, lib, ... }: let theme = import ../../modules/theme; in with theme.colors; { home.packages = with pkgs; [ lm_sensors ]; services.polybar.config = { "module/cputemp" = { type = "custom/script"; interval = 2; exec = "/etc/profiles/per-user/elnu/bin/sensors | /run/current-system/sw/bin/grep \"Package id 0:\" | /run/current-system/sw/bin/tr -d '+' | /run/current-system/sw/bin/awk '{print $4}'"; }; "module/battery" = { type = "internal/battery"; battery = "BAT0"; adapter = "AC"; format-low = " "; label-charging = "%{F${primary}}AC%{F-} %percentage%%"; label-discharging = "%{F${primary}}BAT%{F-} %percentage%%"; label-full = "%{F${primary}}AC%{F-}"; animation-low-0 = "%{F${primary}}BAT%{F-}"; animation-low-1 = "%{F${alert}}LOW%{F-}"; full-at = 96; low-at = 10; # default }; }; }