Output of the blocks should end in a newline or null char
This commit is contained in:
parent
fbdbee7f72
commit
3e97aa9be7
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ICON=""
|
ICON=""
|
||||||
read -r capacity </sys/class/power_supply/BAT0/capacity
|
read -r capacity </sys/class/power_supply/BAT0/capacity
|
||||||
printf "$ICON%s%%" "$capacity"
|
printf "$ICON%s%%\n" "$capacity"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ICON=""
|
ICON=""
|
||||||
printf "$ICON%s" "$(date '+%a, %b %d, %R')"
|
printf "$ICON%s\n" "$(date '+%a, %b %d, %R')"
|
||||||
|
|
|
@ -9,7 +9,7 @@ read -r temp </sys/class/thermal/thermal_zone0/temp
|
||||||
temp=${temp%???}
|
temp=${temp%???}
|
||||||
|
|
||||||
if [ "$temp" -lt "$crit" ] ; then
|
if [ "$temp" -lt "$crit" ] ; then
|
||||||
printf "$ICONn%s°C" "$temp"
|
printf "$ICONn%s°C\n" "$temp"
|
||||||
else
|
else
|
||||||
printf "$ICONc%s°C" "$temp"
|
printf "$ICONc%s°C\n" "$temp"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue