Add colors to Bar Widgets
This commit is contained in:
14
.local/scripts/9995_wifi
Executable file
14
.local/scripts/9995_wifi
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
COLOR1="#009CFF"
|
||||
COLOR2="#005083"
|
||||
|
||||
power=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f8)
|
||||
name=$(nmcli -f IN-USE,SIGNAL,SSID device wifi | grep "*" | cut -d' ' -f14)
|
||||
|
||||
if [[ ! $name ]]
|
||||
then
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ ^d^"
|
||||
else
|
||||
echo "^b$COLOR1^^c$COLOR2^ ^c$COLOR1^^b$COLOR2^ $name $power ^d^"
|
||||
fi
|
Reference in New Issue
Block a user