Update statusbar scripts

master
Hektor Misplon 2022-05-16 11:39:33 +02:00
parent 6639ec989a
commit e06e00bd20
3 changed files with 3 additions and 3 deletions

View File

@ -10,4 +10,4 @@ else
color="\x04" color="\x04"
fi fi
echo -n -e "$color $cap%" echo -n -e "$color $cap% \x01"

View File

@ -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') "

View File

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