46639d7afb2056025ec17c4d4b92736492469c3f
[dotfiles.git] / blocks_wifi
1 #!/bin/sh
2
3 wifi="$(nmcli device wifi | grep -F '*')"
4
5 #not exactly sure why, but u nede || instead of &&
6 output=""
7 [ -z "$wifi" ] || output="$(echo "$wifi" | awk '{printf "%s %s", $3, $6}')" 
8
9 echo "$output"