Update styling for waybar battery module
Add colours based on state (low, critical, charging) Increase module verbosity with lower battery, add time estimate when charging Add power draw to tooltip format
This commit is contained in:
parent
f17c2cb5a6
commit
176e4be1e3
|
@ -222,13 +222,16 @@
|
||||||
};
|
};
|
||||||
battery = {
|
battery = {
|
||||||
states = {
|
states = {
|
||||||
warning = 30;
|
warning = 20;
|
||||||
critical = 20;
|
critical = 10;
|
||||||
};
|
};
|
||||||
format = "{icon}";
|
format = "{icon}";
|
||||||
format-charging = " ";
|
format-time = "{H}:{m}";
|
||||||
|
format-charging = " ({time})";
|
||||||
format-plugged = " ";
|
format-plugged = " ";
|
||||||
tooltip-format = "{capacity}% {time}";
|
format-warning = "{icon}{capacity}%";
|
||||||
|
format-critical = "{icon}{capacity}% ({time})";
|
||||||
|
tooltip-format = "{capacity}% | {power}W | {time}";
|
||||||
format-icons = [
|
format-icons = [
|
||||||
" "
|
" "
|
||||||
" "
|
" "
|
||||||
|
@ -376,6 +379,17 @@
|
||||||
#clock {
|
#clock {
|
||||||
color: ${sc.base0D};
|
color: ${sc.base0D};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery.warning {
|
||||||
|
color: ${sc.base09};
|
||||||
|
}
|
||||||
|
#battery.critical {
|
||||||
|
color: ${sc.base08};
|
||||||
|
}
|
||||||
|
#battery.charging,
|
||||||
|
#battery.plugged {
|
||||||
|
color: ${sc.base0B};
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue