8 lines
164 B
Bash
Executable file
8 lines
164 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
wifi=`nmcli c show --active | tail -n 1 | sed 's/ .*//g'`
|
|
if [ ${#wifi} -gt 0 ]; then
|
|
echo "(label :text \"${wifi}\")"
|
|
else
|
|
echo ""
|
|
fi
|