Playing with eww

This commit is contained in:
Derek Taylor
2022-09-27 14:42:58 -05:00
parent 46fb945cc3
commit 3a7e50ce5d
16 changed files with 1157 additions and 7 deletions

26
.config/eww/bar/scripts/wifi Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
status=$(nmcli g | grep -oE "disconnected")
essid=$(nmcli c | grep wlp2s0 | awk '{print ($1)}')
if [ $status ] ; then
icon=""
text=""
col="#575268"
else
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