diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-10-19 11:46:45 +0200 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-10-19 15:00:41 +0200 |
commit | 33f99d8c8954cc365bad766ebacfb67a5b0aef95 (patch) | |
tree | 235b0a205c3431778125b4631abda855889c6e5b /i3/.config/i3blocks | |
parent | e6acb51e68b9580c327bb268045a4982a5ec5661 (diff) |
Minor changes
Diffstat (limited to 'i3/.config/i3blocks')
-rwxr-xr-x | i3/.config/i3blocks/bin/wifi | 2 |
1 files changed, 1 insertions, 1 deletions
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 ).*(?=/)") |