posix sh doesn't support \xHH
This commit is contained in:
parent
95332f1447
commit
ef4238d88e
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ICON="\x0c\x0b"
|
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%%" "$capacity"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
ICON="\x0c\x0b"
|
ICON=""
|
||||||
printf "$ICON%s" "$(date '+%a, %b %d, %R')"
|
printf "$ICON%s" "$(date '+%a, %b %d, %R')"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ICONn="\x0c\x0b" # icon for normal temperatures
|
ICONn="" # icon for normal temperatures
|
||||||
ICONc="\x0d\x0b" # icon for critical temperatures
|
ICONc="
" # icon for critical temperatures
|
||||||
|
|
||||||
crit=70 # critical temperature
|
crit=70 # critical temperature
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue