summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--waybar/config9
-rw-r--r--waybar/style.css5
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{