From a3365320c6c8602b727834e7b4d82ea69b6cafff Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 20 Feb 2023 22:16:16 +0900 Subject: feat(home/base): add waybar 'battery' & fix typo --- home/profiles/base/config/waybar/settings.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'home/profiles/base/config/waybar/settings.nix') diff --git a/home/profiles/base/config/waybar/settings.nix b/home/profiles/base/config/waybar/settings.nix index 09f32c1..12b65a4 100644 --- a/home/profiles/base/config/waybar/settings.nix +++ b/home/profiles/base/config/waybar/settings.nix @@ -5,9 +5,9 @@ with neotheme.colors; layer = "bottom"; position = "top"; height = 22; - modules-left = [ "pulseaudio" "custom/seperator" "cpu" "custom/seperator" "memory" ]; + modules-left = [ "pulseaudio" "custom/separator" "cpu" "custom/separator" "memory" ]; modules-center = [ "sway/workspaces" ]; - modules-right = [ "clock" ]; + modules-right = [ "battery" "custom/separator" "clock" ]; "sway/workspaces" = { all-outputs = true; @@ -47,7 +47,12 @@ with neotheme.colors; format = "MEM {used:0.2f}GiB"; }; - "custom/seperator" = { + "battery" = { + format = "BATT AA {capacity}%"; + format-alt = "PWR {power}Wh"; + }; + + "custom/separator" = { format = "|"; interval = "once"; tooltip = false; -- cgit 1.4.1