Less icons is better.
This commit is contained in:
parent
3bb80ba30f
commit
eec100f304
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
icon='\uf241 '
|
||||
for battery in /sys/class/power_supply/BAT?*; do
|
||||
# If non-first battery, print a space separator.
|
||||
[ -n "${capacity+x}" ] && printf " "
|
||||
|
@ -14,5 +13,5 @@ for battery in /sys/class/power_supply/BAT?*; do
|
|||
esac
|
||||
capacity=$(cat "$battery/capacity")
|
||||
# Will make a warn variable if discharging and low
|
||||
[ "$capacity" -le 20 ] && printf "<span foreground='#ffffff' background='#770000'>$icon ${status} ${capacity}%%</span>" || printf "$icon ${status} ${capacity}%%"
|
||||
[ "$capacity" -le 20 ] && printf "<span foreground='#ffffff' background='#770000'>${status} ${capacity}%%</span>" || printf "${status} ${capacity}%%"
|
||||
done && exit 0
|
||||
|
|
|
@ -139,7 +139,7 @@ screens = [
|
|||
func=lambda: subprocess.check_output("sb-battery").decode(),
|
||||
),
|
||||
widget.Clock(
|
||||
format='\uf073 [%d] %H:%M:%S'
|
||||
format='/%d/ %H:%M:%S'
|
||||
),
|
||||
widget.Systray(),
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue