refactor(waybar): improve battery animations

This commit is contained in:
Price Hiller 2022-10-07 04:53:03 -05:00
parent 809bf96efa
commit cd2c8ee75a
2 changed files with 6 additions and 6 deletions

View File

@ -31,8 +31,8 @@
"design-capacity": true,
"states": {
"full": 90,
"warning": 30,
"critical": 15
"warning": 20,
"critical": 10
},
"tooltip": false,
"full-at": 95,

View File

@ -166,7 +166,7 @@
#battery.plugged {
background-color: @sumiInk0;
animation-name: blink1;
animation-duration: 0.5s;
animation-duration: 2s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
@ -181,7 +181,7 @@
#battery.charging {
/* background-color: @sumiInk0; */
animation-name: blink2;
animation-duration: 2s;
animation-duration: 8s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-direction: alternate;
@ -196,7 +196,7 @@
#battery.warning:not(.charging) {
/* background-color: @sumiInk0; */
animation-name: blink3;
animation-duration: 0.7s;
animation-duration: 4s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-direction: alternate;
@ -211,7 +211,7 @@
#battery.critical:not(.charging) {
/* background-color: @sumiInk0; */
animation-name: blink4;
animation-duration: 0.8s;
animation-duration: 4s;
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-direction: alternate;