overwrite wifi display if ethernet connected
This commit is contained in:
parent
184d26c50c
commit
9f8b1987cd
@ -25,6 +25,6 @@ elif [ "$(cat /sys/class/net/w*/operstate 2>/dev/null)" = 'down' ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ethernet
|
# Ethernet
|
||||||
[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && ethericon=""
|
[ "$(cat /sys/class/net/e*/operstate 2>/dev/null)" = 'up' ] && wifiicon=""
|
||||||
|
|
||||||
printf "%s%s%s\n" "$wifiicon" "$ethericon"
|
printf "%s%s%s\n" "$wifiicon"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
while true; do
|
while true; do
|
||||||
mpc idle player > /dev/null
|
mpc idle player > /dev/null
|
||||||
pkill -RTMIN+8 dwmblocks
|
pkill -RTMIN+11 dwmblocks
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user