adding conditionals for battery, brightness, and wifi
This commit is contained in:
parent
2c7d2c04c6
commit
b07358f12e
2 changed files with 14 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue