update: better battery in waybar

This commit is contained in:
Yingjie Wang 2024-04-04 04:42:52 -04:00
parent 1c96f24b09
commit 475fbc55cc
2 changed files with 25 additions and 8 deletions

View File

@ -43,7 +43,8 @@
"custom/updates",
"pulseaudio",
//"bluetooth",
//"battery",
"battery",
"battery#charging",
"network",
"cpu",
"memory",

View File

@ -322,16 +322,32 @@
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "{icon} {capacity}%",
"format": "{icon} {capacity}%",
"format-charging": "",
"format-plugged": " {capacity}%",
"format-alt": "{icon} {time}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": {
"Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"],
"default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
}
"format-full": "󱟢 {capacity}%",
//"format-icons": {
// "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"],
// "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
//}
"format-icons": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
},
"battery#charging": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "",
"format-charging": "{icon} {capacity}%",
// "format-good": "", // An empty format will hide the module
//"format-icons": {
// "Charging": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"],
// "default": ["󱃍","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿","󰂀","󰂁","󰂂","󰁹"]
//}
"format-icons": ["󰢟","󰢜","󰂆","󰂇","󰂈","󰢝","󰂉","󰢞","󰂊","󰂋","󰂅"]
},
// Pulseaudio