a metric butt ton of updates that idk....
This commit is contained in:
parent
972aec6926
commit
fc5a0acaec
18 changed files with 486 additions and 405 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue