Add battery module

This commit is contained in:
2026-01-27 14:47:20 +00:00
parent cbcd8282ba
commit 68129c5363
2 changed files with 29 additions and 35 deletions

View File

@@ -15,6 +15,7 @@
"modules-right": [
"tray",
"pulseaudio",
"battery",
"custom/power"
],
@@ -56,6 +57,23 @@
"on-click-right": "pavucontrol"
},
"battery": {
"interval":2,
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-full": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"custom/power":{
"format": "⏻",
"tooltip": false,