From 33f99d8c8954cc365bad766ebacfb67a5b0aef95 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 19 Oct 2017 11:46:45 +0200 Subject: Minor changes --- i3/.config/i3blocks/bin/wifi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i3/.config/i3blocks') diff --git a/i3/.config/i3blocks/bin/wifi b/i3/.config/i3blocks/bin/wifi index 2e47da2..fd9a9c5 100755 --- a/i3/.config/i3blocks/bin/wifi +++ b/i3/.config/i3blocks/bin/wifi @@ -1,6 +1,6 @@ #!/usr/bin/env bash -quality=$(lspci | grep -i Wireless | sed 's/^.*(rev \(.*\))/\1/') +quality=$(iwconfig wlp2s0 | grep -oP 'Link Quality=\K[0-9]*/[0-9]*' | awk -F'/' '{print int(100*$1/$2)}') ssid=$(iwconfig wlp2s0 | grep -oP '(?<=ESSID:").*(?=")') address=$(ip addr show wlp2s0 | grep -oP -m1 "(?<=inet ).*(?=/)") -- cgit v1.2.3