refactor(waybar): improve battery animations
This commit is contained in:
parent
809bf96efa
commit
cd2c8ee75a
@ -31,8 +31,8 @@
|
||||
"design-capacity": true,
|
||||
"states": {
|
||||
"full": 90,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"tooltip": false,
|
||||
"full-at": 95,
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user