posix sh doesn't support \xHH

This commit is contained in:
Ashish Kumar Yadav 2021-01-10 02:15:31 +05:30
parent 95332f1447
commit ef4238d88e
3 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
ICON="\x0c\x0b"
ICON=" "
read -r capacity </sys/class/power_supply/BAT0/capacity
printf "$ICON%s%%" "$capacity"

View file

@ -1,3 +1,3 @@
#!/bin/sh
ICON="\x0c\x0b"
ICON=" "
printf "$ICON%s" "$(date '+%a, %b %d, %R')"

View file

@ -1,7 +1,7 @@
#!/bin/sh
ICONn="\x0c\x0b" # icon for normal temperatures
ICONc="\x0d\x0b" # icon for critical temperatures
ICONn=" " # icon for normal temperatures
ICONc=" " # icon for critical temperatures
crit=70 # critical temperature