waybar: add battry section

This commit is contained in:
DACHXY 2024-12-26 16:39:45 +08:00
parent 87c07bfecf
commit 150b3f79d6
3 changed files with 43 additions and 3 deletions

View file

@ -10,7 +10,7 @@
window#waybar {
background-color: rgba(0, 0, 0, 0);
transition-property: background-color;
transition-duration: .5s;
transition-duration: 0.5s;
}
window#waybar.hidden {
@ -56,6 +56,14 @@ tooltip label {
padding-right: 6px;
}
#battery {
border-radius: 10px;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 6px;
padding-right: 6px;
}
#window {
color: #ebdbb2;
padding-top: 3px;
@ -79,3 +87,20 @@ tooltip label {
#temperature.critical {
background-color: red;
}
#battery.good {
color: #a6da95;
}
#battery.warning {
color: #eed49f;
}
#battery.critical {
color: #ee99a0;
}
#battery.charging,
#battery.plugged {
color: #a6da95;
}