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, "design-capacity": true,
"states": { "states": {
"full": 90, "full": 90,
"warning": 30, "warning": 20,
"critical": 15 "critical": 10
}, },
"tooltip": false, "tooltip": false,
"full-at": 95, "full-at": 95,

View File

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