dwmblocks/dwmblocks_scripts/dwm_ssid

13 lines
173 B
Plaintext
Raw Normal View History

2023-02-24 10:48:23 +01:00
#!/bin/bash
ssid="$(wpa_cli status | grep ssid | sed -n '2p' | awk -F '=' '{print $2}')"
if [[ $(echo $ssid | wc -c) -gt 1 ]]
then
echo "$ssid"
exit;
fi
echo ""