From 8c7be12a3749b3cb6b38453019b696757be07262 Mon Sep 17 00:00:00 2001 From: roxwize Date: Tue, 10 Dec 2024 16:01:24 -0500 Subject: [PATCH] ~ --- nixos/home.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nixos/home.nix b/nixos/home.nix index 5dc3ad1..00177cf 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -74,7 +74,7 @@ in font-0 = "GohuFont:style=Regular:size=14;3"; modules-left = "cpu memory"; modules-center = "xwindow"; - modules-right = "date"; + modules-right = "battery date"; module-margin = 1; offset-y = 14; padding = 2; @@ -98,11 +98,20 @@ in type = "internal/xwindow"; label-active-font = 0; }; + "module/battery" = { + type = "internal/battery"; + battery = "BAT0"; + adapter = "ADP1"; + label-charging = "BAT: %percentage%%++"; + label-discharging = "BAT: %percentage%%"; + label-background = color1; + label-padding = 2; + }; "module/date" = { type = "internal/date"; date = "%b %d %y"; time = "%I:%M %p"; - label-background = color2; + label-background = color0; label-padding = 2; interval = 5; };