From 8633c82378ab9b3a88b956def1a05cb76b4c11fd Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sun, 6 Sep 2020 08:26:26 -0400 Subject: added freebsd US FTP mirror ranker --- i3blocks-net.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i3blocks-net.sh') diff --git a/i3blocks-net.sh b/i3blocks-net.sh index abb241f..396faa6 100755 --- a/i3blocks-net.sh +++ b/i3blocks-net.sh @@ -8,8 +8,8 @@ if [ "$is_ethernet" = " active" ]; then inet=$(ifconfig lagg0 | grep inet\ | cut -w -f3) printf "%s%s\n" $icon_ethernet $inet elif [ "$(ifconfig wlan0 | grep status | cut -d\: -f2)" = " associated" ]; then - ssid=$(ifconfig wlan0 | grep ssid\ | cut -d'"' -f2) - [ -n "$ssid" ] && printf "%s\"%s\"" $icon_wireless "$ssid" + ssid=$(ifconfig wlan0 | sed -n 's/^.*ssid \(.*\) channel.*$/\1/p') + [ -n "$ssid" ] && printf "%s%s" $icon_wireless "$ssid" else printf "%sNo connection" $icon_down fi -- cgit v1.2.3