✨ feat(waybar): add battery module
This commit is contained in:
parent
1125f8a15f
commit
53ded3988b
2 changed files with 33 additions and 0 deletions
16
.config/waybar/modules/battery.jsonc
Normal file
16
.config/waybar/modules/battery.jsonc
Normal 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,
|
||||||
|
},
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue