diff options
Diffstat (limited to '.config/wmii-hg/rbar_wifi')
-rwxr-xr-x | .config/wmii-hg/rbar_wifi | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi index d201152..e740777 100755 --- a/.config/wmii-hg/rbar_wifi +++ b/.config/wmii-hg/rbar_wifi @@ -1,14 +1,5 @@ #!/usr/bin/env bash -iwinfo() { - local interface=$1 - iwconfig "$interface" | - sed -r 's/ {2,}/\n/g' | - sed -e '/^\s*$/d' -e 's/:\s*/=/' \ - -e '1s/^/Interface=/' \ - -e '2s/^/MAC Protocol=/' -} - update() { local iface=wlp2s0 @@ -18,7 +9,7 @@ update() { while true; do IFS=$'\n' lines=($( - iwinfo "$iface" | sed -rn 's@^(ESSID|Link Quality)=@@p' + iwdata "$iface" | sed -rn 's@^(ESSID|Link Quality)=@@p' ifdata -pa "$iface" )) IFS='|' |