From 0b7760fd7cf2dafb33208a9a834282a4dc7ce0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 1 Mar 2017 10:51:32 +0100 Subject: Chnages in i3block scripts --- config/i3blocks/scripts/wifi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/i3blocks/scripts/wifi') diff --git a/config/i3blocks/scripts/wifi b/config/i3blocks/scripts/wifi index a8af5e4..d549b10 100755 --- a/config/i3blocks/scripts/wifi +++ b/config/i3blocks/scripts/wifi @@ -16,7 +16,7 @@ #------------------------------------------------------------------------ -INTERFACE="${BLOCK_INSTANCE:-wlan0}" +INTERFACE="$(ip link | awk '/wlp.*/ {print substr($2, 1, length($2)-1); exit}')" #------------------------------------------------------------------------ @@ -32,7 +32,7 @@ SSID=$(iwgetid $INTERFACE | sed 's/.*ESSID:"\([^"]*\)"/\1/') #------------------------------------------------------------------------ -echo $SSID: $QUALITY% # full text +echo $SSID $QUALITY% # full text echo $SSID # short text # color -- cgit v1.2.3