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 | |
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')
-rw-r--r-- | home/profiles/base/config/waybar/settings.nix | 11 | ||||
-rw-r--r-- | home/profiles/base/config/waybar/style.nix | 3 |
2 files changed, 10 insertions, 4 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; 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}; |