aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/wifi
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-01 10:51:32 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-01 10:51:32 +0100
commit0b7760fd7cf2dafb33208a9a834282a4dc7ce0dd (patch)
treebd85afe4e9f278e616021d8797281d51f0b723d0 /config/i3blocks/scripts/wifi
parent367320e729a769619a66ee4dc258cc1412b8548a (diff)
downloadmyconfigs-0b7760fd7cf2dafb33208a9a834282a4dc7ce0dd.tar.gz
myconfigs-0b7760fd7cf2dafb33208a9a834282a4dc7ce0dd.tar.bz2
myconfigs-0b7760fd7cf2dafb33208a9a834282a4dc7ce0dd.zip
Chnages in i3block scripts
Diffstat (limited to 'config/i3blocks/scripts/wifi')
-rwxr-xr-xconfig/i3blocks/scripts/wifi4
1 files changed, 2 insertions, 2 deletions
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