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";
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue