waybar: configure battery states and fix colors

This commit is contained in:
Aminda Suomalainen 2022-06-04 14:00:04 +03:00
parent 0bf0a49597
commit 27a6719e91
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 7 additions and 3 deletions

View File

@ -22,7 +22,11 @@
"format-bluetooth": "🔈 {volume}%"
},
"battery": {
"format": "🔋 {capacity}%"
"states": {
"warning": 40,
"critical": 20
},
"format": "🔋 {capacity}%",
},
"sway/language": {
"format": "⌨ {short} {variant}",

View File

@ -49,7 +49,7 @@ tooltip label {
#battery {
background-color: #103c48;
color: black;
color: white;
}
#battery.charging {
@ -60,7 +60,7 @@ tooltip label {
@keyframes blink {
to {
background-color: #103c48;
color: black;
color: white;
}
}