home/polybar: add battery icons
This commit is contained in:
parent
4d02405ac2
commit
f29cf4858a
1 changed files with 20 additions and 5 deletions
|
@ -25,8 +25,8 @@ in
|
||||||
height = "20px";
|
height = "20px";
|
||||||
font = [
|
font = [
|
||||||
"Fira Code:size=9:antialias=true"
|
"Fira Code:size=9:antialias=true"
|
||||||
"Fira Code:bold:size=0:antialias=true"
|
"Fira Code:bold:size=9:antialias=true"
|
||||||
"FiraCode Nerd Font Mono:size=16:antialias=true"
|
"FiraCode Nerd Font Mono:size=9:antialias=true"
|
||||||
];
|
];
|
||||||
radius = 0;
|
radius = 0;
|
||||||
modules = {
|
modules = {
|
||||||
|
@ -73,20 +73,35 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/battery" = {
|
"module/battery" = let padding = 1; in {
|
||||||
type = "internal/battery";
|
type = "internal/battery";
|
||||||
full-at = 99;
|
full-at = 99;
|
||||||
low-at = 10;
|
low-at = 10;
|
||||||
battery = "BAT0";
|
battery = "BAT0";
|
||||||
adapter = "AC0";
|
adapter = "AC0";
|
||||||
|
|
||||||
|
format.charging = {
|
||||||
|
inherit padding;
|
||||||
|
text = "%{T3}%{T-} <label-charging>";
|
||||||
|
};
|
||||||
|
|
||||||
format.discharging = {
|
format.discharging = {
|
||||||
|
inherit padding;
|
||||||
text = "%{T3}<ramp-capacity>%{T-} <label-discharging>";
|
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
|
# Only applies if <ramp-capacity> is used
|
||||||
ramp.capacity = [ "" "" "" "" "" ];
|
ramp.capacity = [ "" "" "" "" "" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
"module/wifi_home" = mkWifi "wlp11s0f3u2";
|
"module/wifi_home" = mkWifi "wlp11s0f3u2";
|
||||||
|
|
Loading…
Reference in a new issue