|
|
@ -18,6 +18,13 @@ update() { |
|
|
|
CALLINFO=" ${CALLSECONDS}s " |
|
|
|
CALLINFO=" ${CALLSECONDS}s " |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# W symbol if wireless is connect |
|
|
|
|
|
|
|
WIRELESS="" |
|
|
|
|
|
|
|
WLANSTATE="$(tr -d "\n" < /sys/class/net/wlan0/operstate)" |
|
|
|
|
|
|
|
if [ "$WLANSTATE" = "up" ]; then |
|
|
|
|
|
|
|
WIRELESS="W " |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# M symbol if modem monitoring is on & modem present |
|
|
|
# M symbol if modem monitoring is on & modem present |
|
|
|
MODEMMON="" |
|
|
|
MODEMMON="" |
|
|
|
pgrep -f sxmo_modemmonitor.sh && MODEMMON="M " |
|
|
|
pgrep -f sxmo_modemmonitor.sh && MODEMMON="M " |
|
|
@ -42,7 +49,7 @@ update() { |
|
|
|
# Time |
|
|
|
# Time |
|
|
|
TIME="$(date +%R)" |
|
|
|
TIME="$(date +%R)" |
|
|
|
|
|
|
|
|
|
|
|
BAR="${CALLINFO}${MODEMMON}${VOL} ${BATSTATUS}${PCT}% ${TIME}" |
|
|
|
BAR="${CALLINFO}${MODEMMON}${WIRELESS}${VOL} ${BATSTATUS}${PCT}% ${TIME}" |
|
|
|
xsetroot -name "$BAR" |
|
|
|
xsetroot -name "$BAR" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|