dwmblocks/dwmblocks_scripts/dwm_ssid
2023-02-24 10:48:23 +01:00

13 lines
173 B
Bash
Executable File

#!/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 ""