feat(waybar): add battery module

This commit is contained in:
Sergio Laín 2024-08-23 12:54:10 +02:00
parent 1125f8a15f
commit 53ded3988b
No known key found for this signature in database
GPG key ID: 8429B2EE312F8150
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,16 @@
{
"battery": {
"format": "{capacity}% {icon}",
"format-icons": {
"charging": ["󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅"],
"default": ["󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
},
"format-full": "Charged ",
"interval": 5,
"states": {
"warning": 20,
"critical": 10,
},
"tooltip": false,
},
}

View file

@ -27,6 +27,7 @@
} }
/* General Settings */ /* General Settings */
#battery,
#cava, #cava,
#custom-cava, #custom-cava,
#custom-clipboard, #custom-clipboard,
@ -162,6 +163,22 @@ window#waybar.hidden {
} }
/* Individual Modules */ /* Individual Modules */
#battery {
color: @mauve;
}
#battery.warning {
color: @yellow;
}
#battery.critical {
color: @peach;
}
#battery.urgent {
color: @red;
}
#custom-cava { #custom-cava {
color: @lavender; color: @lavender;
border-radius: 12px; border-radius: 12px;