summary refs log tree commit diff
path: root/.config/waybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/waybar')
-rw-r--r--.config/waybar/config10
-rw-r--r--.config/waybar/style.css6
2 files changed, 13 insertions, 3 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
index 187e47e..a96d7ab 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -5,7 +5,7 @@
     // Choose the order of the modules
     "modules-left": ["sway/workspaces", "hyprland/workspaces", "sway/mode",  "hyprland/submap", "sway/scratchpad", "custom/media"],
     "modules-center": [],
-    "modules-right": ["clock","backlight", "temperature", "network", "battery", "pulseaudio", "tray"],
+    "modules-right": ["clock","backlight", "temperature", "network", "upower","pulseaudio", "tray"],
     // Modules configuration
     // "sway/workspaces": {
     //     "disable-scroll": true,
@@ -101,7 +101,15 @@
         "format-icons": ["", "", "", "", "", "", "", "", ""],
         "on-click": "swaync-client -t" //"brightnessctl s $(( ( $(brightnessctl g) + ( $(brightnessctl m) / 8 ) ) % $(brightnessctl m) ))"
     },
+    "upower":{
+            "format": "",
+            "format-alt": "{percentage}",
+            "icon-size":15,
+
+    },
     "battery": {
+        "bat": "bq27411-0",
+        "bat-compatibility":true,
         "states": {
             // "good": 95,
             "warning": 30,
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
index 031a74e..9c4677a 100644
--- a/.config/waybar/style.css
+++ b/.config/waybar/style.css
@@ -75,6 +75,7 @@ button:hover {
 
 #clock,
 #battery,
+#upower,
 #cpu,
 #memory,
 #disk,
@@ -107,12 +108,13 @@ button:hover {
 .modules-right > widget:last-child > #workspaces {
     margin-right: 0;
 }
-#battery {
+#battery,#upower {
     background-color: #ffffff;
     color: #000000;
 }
 
-#battery.charging, #battery.plugged {
+#battery.charging, #battery.plugged,
+#upower.charging, #upower.plugged {
     color: #ffffff;
     background-color: #26A65B;
 }