mirror of
https://github.com/oddlama/nix-config.git
synced 2025-10-11 07:10:39 +02:00
feat: add battery icon to waybar and add wifi status
This commit is contained in:
parent
78904fed18
commit
79e1e782c4
2 changed files with 23 additions and 9 deletions
|
@ -91,29 +91,32 @@ button:hover {
|
|||
color: #000000;
|
||||
}
|
||||
|
||||
#battery {
|
||||
#battery.charging {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging,
|
||||
#battery.plugged {
|
||||
background-color: #26A65B;
|
||||
#battery.plugged:not(.charging) {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
background-color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.warning:not(.charging) {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #e05f65;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-timing-function: step-start;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue