adding conditionals for battery, brightness, and wifi

This commit is contained in:
Chris Cochrun 2022-12-21 09:49:02 -06:00
parent 2c7d2c04c6
commit b07358f12e
2 changed files with 14 additions and 4 deletions

View file

@ -2,6 +2,7 @@
status=$(nmcli g | grep -oE "disconnected")
essid=$(nmcli -t -f active,ssid dev wifi | grep '^yes' | cut -d: -f2)
device=$(nmcli d | rg -w "connected" | awk '{print $1}')
if [ $status ] ; then
icon="睊"
@ -9,9 +10,15 @@ if [ $status ] ; then
col="#575268"
else
icon=""
text="${essid}"
col="#a1bdce"
if [ $device == "enp0s31f6" ]; then
icon=""
text="ethernet"
col="#a1bdce"
else
icon=""
text="${essid}"
col="#a1bdce"
fi
fi