t14: add battery indicator to waybar

This commit is contained in:
Fabian Montero 2025-09-22 20:36:56 -06:00
parent 1027e9dd80
commit ba55adc044

View file

@ -6,6 +6,7 @@
}: }:
with lib; let with lib; let
cfg = config.local.gui; cfg = config.local.gui;
laptop = config.trivium.laptop.enable;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
programs.waybar = { programs.waybar = {
@ -33,7 +34,13 @@ in {
"temperature" "temperature"
"keyboard-state" "keyboard-state"
"tray" "tray"
] ++ lists.optionals laptop [
"battery"
]; ];
"battery" = mkIf laptop {
format = "{capacity}% {icon}";
format-icons = ["" "" "" "" ""];
};
"keyboard-state" = { "keyboard-state" = {
numlock = true; numlock = true;
capslock = true; capslock = true;