Update statusbar scripts
parent
6639ec989a
commit
e06e00bd20
|
@ -10,4 +10,4 @@ else
|
||||||
color="\x04"
|
color="\x04"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n -e "$color $cap%"
|
echo -n -e "$color $cap% \x01"
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo -n -e "Week $(date '+%V') - $(date '+%a %d %b %H:%M')"
|
echo -n -e "Week $(date '+%V') $(date '+%a %d %b %H:%M') "
|
||||||
|
|
|
@ -4,4 +4,4 @@ if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
|
||||||
wifiicon="$(awk '/^\s*w/ { print "WiFi", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
wifiicon="$(awk '/^\s*w/ { print "WiFi", int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf " %s%s%s |" "$wifiicon" "$(sed "s/down//;s/up/Ethernet/" /sys/class/net/e*/operstate 2>/dev/null)"
|
printf " %s%s%s" "$wifiicon" "$(sed "s/down//;s/up/Ethernet/" /sys/class/net/e*/operstate 2>/dev/null)"
|
||||||
|
|
Loading…
Reference in New Issue