Notify of low battery in Waybar
This commit is contained in:
parent
13ba2c19ea
commit
636f95874b
|
@ -44,8 +44,8 @@
|
||||||
"bat": "BAT0",
|
"bat": "BAT0",
|
||||||
"states": {
|
"states": {
|
||||||
"good": 95,
|
"good": 95,
|
||||||
"warning": 60,
|
"warning": 30,
|
||||||
"critical": 20
|
"critical": 10
|
||||||
},
|
},
|
||||||
"format": "<span foreground='#88C0D0'>{icon}</span> {capacity}%",
|
"format": "<span foreground='#88C0D0'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span foreground='#88C0D0'></span> {capacity}%",
|
"format-charging": "<span foreground='#88C0D0'></span> {capacity}%",
|
||||||
|
@ -59,8 +59,8 @@
|
||||||
"bat": "BAT1",
|
"bat": "BAT1",
|
||||||
"states": {
|
"states": {
|
||||||
"good": 95,
|
"good": 95,
|
||||||
"warning": 60,
|
"warning": 30,
|
||||||
"critical": 20
|
"critical": 10
|
||||||
},
|
},
|
||||||
"format": "<span foreground='#88C0D0'>{icon}</span> {capacity}%",
|
"format": "<span foreground='#88C0D0'>{icon}</span> {capacity}%",
|
||||||
"format-charging": "<span foreground='#88C0D0'></span> {capacity}%",
|
"format-charging": "<span foreground='#88C0D0'></span> {capacity}%",
|
||||||
|
|
|
@ -89,10 +89,18 @@ window#waybar.chromium {
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
to {
|
to {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
color: #000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.bat2.critical:not(.charging) {
|
||||||
|
color: #ffffff;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: 10;
|
||||||
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
label:focus {
|
label:focus {
|
||||||
|
|
Loading…
Reference in New Issue