mirror of
https://github.com/mintycube/dotfiles.git
synced 2024-10-22 14:05:41 +02:00
change colors
This commit is contained in:
parent
229deda371
commit
4a63eb13ef
@ -22,13 +22,13 @@ if [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'up' ] ; then
|
|||||||
if [ ! -e ~/.cache/bar_color ]; then
|
if [ ! -e ~/.cache/bar_color ]; then
|
||||||
wifiicon="$(awk '/^\s*w/ { cmd="nmcli -t -f active,ssid dev wifi | grep yes | cut -d: -f2"; cmd | getline output; close(cmd); print " ", output }' /proc/net/wireless)"
|
wifiicon="$(awk '/^\s*w/ { cmd="nmcli -t -f active,ssid dev wifi | grep yes | cut -d: -f2"; cmd | getline output; close(cmd); print " ", output }' /proc/net/wireless)"
|
||||||
else
|
else
|
||||||
wifiicon="$(awk '/^\s*w/ { cmd="nmcli -t -f active,ssid dev wifi | grep yes | cut -d: -f2"; cmd | getline output; close(cmd); print "^C2^ ^d^", output }' /proc/net/wireless)"
|
wifiicon="$(awk '/^\s*w/ { cmd="nmcli -t -f active,ssid dev wifi | grep yes | cut -d: -f2"; cmd | getline output; close(cmd); print "^C3^ ^d^", output }' /proc/net/wireless)"
|
||||||
fi
|
fi
|
||||||
elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
|
elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
|
||||||
if [ ! -e ~/.cache/bar_color ]; then
|
if [ ! -e ~/.cache/bar_color ]; then
|
||||||
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon=" " || wifiicon=" "
|
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon=" " || wifiicon=" "
|
||||||
else
|
else
|
||||||
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="^C1^ ^d^" || wifiicon="^C3^ ^d^"
|
[ "$(cat /sys/class/net/w*/flags 2>/dev/null)" = '0x1003' ] && wifiicon="^C5^ ^d^" || wifiicon="^C1^ ^d^"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user