diff options
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 ).*(?=/)") |