mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-25 04:20:24 +10:00
Adding a conky
This commit is contained in:
20
.config/conky/qtile/Mimosa/scripts/ssid
Executable file
20
.config/conky/qtile/Mimosa/scripts/ssid
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user