about summary refs log tree commit diff
path: root/home/profiles/base
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles/base')
-rw-r--r--home/profiles/base/config/waybar/settings.nix11
-rw-r--r--home/profiles/base/config/waybar/style.nix3
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};