diff options
author | ZachIR <zachir@librem.one> | 2025-07-30 04:23:51 -0500 |
---|---|---|
committer | ZachIR <zachir@librem.one> | 2025-07-30 04:25:12 -0500 |
commit | 66a55d31d6cfa115c99a7fe3c93fbbed7901fe8e (patch) | |
tree | 95b2e2498c914edd7f28a4b8badd7d5304a44cac | |
parent | ec330589a41b423950fe49449248edb546961383 (diff) |
Add custom/battery for while battery is broken
-rw-r--r-- | waybar/config | 9 | ||||
-rw-r--r-- | waybar/style.css | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/waybar/config b/waybar/config index 5807b92..9246fa2 100644 --- a/waybar/config +++ b/waybar/config @@ -160,8 +160,8 @@ "format": "{}% " }, "battery": { - "bat": "BAT0", - "interval": 60, + //"bat": "BAT0", + //"interval": 60, "state": { "warning": 30, "critical": 15 @@ -214,6 +214,11 @@ "on-click": "rofi -show drun", //"on-click-right": "killall rofi" }, + "custom/battery":{ + "interval": 60, + "format": "{}%", + "exec": "cat /sys/class/power_supply/BAT0/capacity", + }, "custom/power":{ "format": "", "on-click": "rofi -show p -modi p:rofi-power-menu", diff --git a/waybar/style.css b/waybar/style.css index 0a4431c..865e806 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -89,6 +89,7 @@ window#waybar.hidden { #custom-media, #custom-launcher, #custom-power, +#custom-battery, #custom-layout, #custom-updater, #custom-snip, @@ -215,7 +216,11 @@ label:focus { background-color: #1b1d1c; font-size: 18px; margin-right: 5px; +} +#custom-battery{ + background-color: #1b1d1c; + font-size: 18px; } #custom-launcher{ |