1
0
Fork 0
dotfiles/.config/eww/scripts/wifi
2022-03-20 03:19:38 -04:00

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