This is a collection of dotfiles and scripts for my bspwm setup
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/bin/sh |
|
|
|
|
|
WIRED="${BLOCK_INSTANCE:-eth0}" |
|
|
|
|
|
echo "" |
|
|
echo "" |
|
|
if [ ! -d /sys/class/net/${WIRED} ] || |
|
|
[ "$(cat /sys/class/net/$WIRED/operstate)" = 'down' ] || |
|
|
[ "$(ip a | grep $WIRED | awk '/inet / {print $2}')" = "" ]; then |
|
|
echo "#676E7D" |
|
|
else |
|
|
echo "#FFFFFF" |
|
|
fi
|
|
|
|