diff options
author | sefidel <contact@sefidel.net> | 2023-02-20 22:16:16 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2023-02-20 22:16:16 +0900 |
commit | a3365320c6c8602b727834e7b4d82ea69b6cafff (patch) | |
tree | 7dfe9d2465383613db368c6176dd8e83fbc7be8c /home/profiles/base/config/waybar/settings.nix | |
parent | 625687459561f9e3103368bc2baa238058fe046f (diff) | |
download | nixrc-a3365320c6c8602b727834e7b4d82ea69b6cafff.tar.gz nixrc-a3365320c6c8602b727834e7b4d82ea69b6cafff.zip |
feat(home/base): add waybar 'battery' & fix typo
Diffstat (limited to 'home/profiles/base/config/waybar/settings.nix')
-rw-r--r-- | home/profiles/base/config/waybar/settings.nix | 11 |
1 files changed, 8 insertions, 3 deletions
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 = "<span foreground='#${color3}'>MEM</span> {used:0.2f}GiB"; }; - "custom/seperator" = { + "battery" = { + format = "<span foreground='#${color6}'>BATT</span> AA {capacity}%"; + format-alt = "<span foreground='#${color6}'>PWR</span> {power}Wh"; + }; + + "custom/separator" = { format = "|"; interval = "once"; tooltip = false; |