posix sh doesn't support \xHH

pull/47/head
Ashish Kumar Yadav 3 years ago
parent 95332f1447
commit ef4238d88e

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

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

@ -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

Loading…
Cancel
Save