mirror of
https://github.com/Yannick7777/dotfiles.git
synced 2025-06-26 06:35:23 +02:00
Fix percentage char showing up on non-laptops
This commit is contained in:
parent
e7d835ffca
commit
bdec905c08
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ label {
|
||||||
|
|
||||||
label {
|
label {
|
||||||
monitor =
|
monitor =
|
||||||
text = cmd[update:2000] echo "$(cat /sys/class/power_supply/BAT0/capacity | awk '{ if ($1 >= 90) icon=" "; else if ($1 >= 70) icon=" "; else if ($1 >= 50) icon=" "; else if ($1 >= 10) icon=" "; else icon=" ";} END {print $1 "% <span>" icon (system("grep -q Charging /sys/class/power_supply/BAT0/status") == 0 ? "" : "")"</span>"}')"
|
text = cmd[update:2000] echo "$(test -f /sys/class/power_supply/BAT0/model_name && cat /sys/class/power_supply/BAT0/capacity | awk '{ if ($1 >= 90) icon=" "; else if ($1 >= 70) icon=" "; else if ($1 >= 50) icon=" "; else if ($1 >= 10) icon=" "; else icon=" ";} END {print $1 "% <span>" icon (system("grep -q Charging /sys/class/power_supply/BAT0/status") == 0 ? "" : "")"</span>"}')"
|
||||||
|
|
||||||
|
|
||||||
text_align = center
|
text_align = center
|
||||||
|
|
Loading…
Add table
Reference in a new issue