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 ++++++++--- home/profiles/base/config/waybar/style.nix | 3 ++- 2 files changed, 10 insertions(+), 4 deletions(-) (limited to 'home/profiles/base') 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; diff --git a/home/profiles/base/config/waybar/style.nix b/home/profiles/base/config/waybar/style.nix index 195fb2d..965e71b 100644 --- a/home/profiles/base/config/waybar/style.nix +++ b/home/profiles/base/config/waybar/style.nix @@ -49,6 +49,7 @@ with neotheme.colors; #cpu, #temperature, #backlight, + #battery, #network, #memory, #language, @@ -70,7 +71,7 @@ with neotheme.colors; } } - #custom-seperator { + #custom-separator { color: #${alt1}; background-color: #${background}; border-bottom: 1px solid #${bright0}; -- cgit 1.4.1