home/polybar: add battery icons

This commit is contained in:
Dmitriy Pleshevskiy 2022-10-02 15:09:38 +03:00
parent 4d02405ac2
commit f29cf4858a
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -25,8 +25,8 @@ in
height = "20px";
font = [
"Fira Code:size=9:antialias=true"
"Fira Code:bold:size=0:antialias=true"
"FiraCode Nerd Font Mono:size=16:antialias=true"
"Fira Code:bold:size=9:antialias=true"
"FiraCode Nerd Font Mono:size=9:antialias=true"
];
radius = 0;
modules = {
@ -73,20 +73,35 @@ in
};
};
"module/battery" = {
"module/battery" = let padding = 1; in {
type = "internal/battery";
full-at = 99;
low-at = 10;
battery = "BAT0";
adapter = "AC0";
format.charging = {
inherit padding;
text = "%{T3}%{T-} <label-charging>";
};
format.discharging = {
inherit padding;
text = "%{T3}<ramp-capacity>%{T-} <label-discharging>";
padding = 1;
};
format.full = {
inherit padding;
text = "%{T3}%{T-} <label-full>";
};
format.low = {
inherit padding;
text = "%{T3}%{T-} <label-low>";
};
# Only applies if <ramp-capacity> is used
ramp.capacity = [ "" "" "" "" "" ];
ramp.capacity = [ "" "" "" "" "" ];
};
"module/wifi_home" = mkWifi "wlp11s0f3u2";