mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-24 12:00:24 +10:00
21 lines
306 B
Bash
Executable File
21 lines
306 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# A simple script to display wifi name
|
|
# 'ssid -i' = with icon, 'ssid' = text only
|
|
# Cheers!
|
|
# Addy
|
|
|
|
SSID_NAME=$(/sbin/iwgetid -r)
|
|
|
|
if [[ "${SSID_NAME}" != "" ]]; then
|
|
if [[ $1 = "-i" ]]; then
|
|
echo " ${SSID_NAME}"
|
|
else
|
|
echo "${SSID_NAME}"
|
|
fi
|
|
else
|
|
echo "Not Connected"
|
|
fi
|
|
|
|
exit
|