From ba55adc044ee0170376d77d866f8bdb84f6cbe2b Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Mon, 22 Sep 2025 20:36:56 -0600 Subject: [PATCH] t14: add battery indicator to waybar --- home/modules/gui/waybar.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/modules/gui/waybar.nix b/home/modules/gui/waybar.nix index 7f37784..7112b41 100644 --- a/home/modules/gui/waybar.nix +++ b/home/modules/gui/waybar.nix @@ -6,6 +6,7 @@ }: with lib; let cfg = config.local.gui; + laptop = config.trivium.laptop.enable; in { config = mkIf cfg.enable { programs.waybar = { @@ -33,7 +34,13 @@ in { "temperature" "keyboard-state" "tray" + ] ++ lists.optionals laptop [ + "battery" ]; + "battery" = mkIf laptop { + format = "{capacity}% {icon}"; + format-icons = ["" "" "" "" ""]; + }; "keyboard-state" = { numlock = true; capslock = true;