pinosaur
/
dotfiles.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
new scripts
[dotfiles.git]
/
Scripts
/
statusbar
/
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"