diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-25 12:26:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-08-13 16:38:54 -0400 |
commit | ae9c1a5cc53df4179fddd9623409c2eee9878f39 (patch) | |
tree | fd7efe331b4b569999453d59446ba164db30f768 /.config/wmii-hg/rbar_wifi | |
parent | 5189b8de23f07038fa97d165e140b004796078a9 (diff) |
rbar: shorten for smaller screen, show IP address
Diffstat (limited to '.config/wmii-hg/rbar_wifi')
-rwxr-xr-x | .config/wmii-hg/rbar_wifi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.config/wmii-hg/rbar_wifi b/.config/wmii-hg/rbar_wifi index dad4e61..3f222bd 100755 --- a/.config/wmii-hg/rbar_wifi +++ b/.config/wmii-hg/rbar_wifi @@ -16,7 +16,10 @@ update() { while true; do { printf 'label ' - iwinfo wlp2s0|grep -E '^(ESSID|Link Quality)='|sed 'N;s/\n/ | /' + { + iwinfo wlp2s0 | sed -rn 's@^(ESSID|Link Quality)=@@p' + ifdata -pa wlp2s0 + } | sed 'N;N;s/\n/|/g' } | write "$id" sleep 1 done |