a metric butt ton of updates that idk....

This commit is contained in:
Chris Cochrun 2022-12-08 12:15:21 -06:00
parent 972aec6926
commit fc5a0acaec
18 changed files with 486 additions and 405 deletions

View file

@ -1,26 +1,22 @@
#!/bin/bash
#!/bin/sh
status=$(nmcli g | grep -oE "disconnected")
essid=$(nmcli c | grep wlp2s0 | awk '{print ($1)}')
essid=$(nmcli -t -f active,ssid dev wifi | grep '^yes' | cut -d: -f2)
if [ $status ] ; then
icon=""
icon=""
text=""
col="#575268"
else
icon=""
icon=""
text="${essid}"
col="#a1bdce"
fi
if [[ "$1" == "--COL" ]]; then
echo $col
elif [[ "$1" == "--ESSID" ]]; then
echo $text
elif [[ "$1" == "--ICON" ]]; then
echo $icon
fi
case $1 in
--COL) echo $col;;
--ESSID) echo $text;;
--ICON) echo $icon;;
esac