diff --git a/.config/i3/blocks/iface b/.config/i3/blocks/iface index 4d6ea2c..48e672e 100755 --- a/.config/i3/blocks/iface +++ b/.config/i3/blocks/iface @@ -32,7 +32,7 @@ fi #------------------------------------------------------------------------ -if [[ "$(cat /sys/class/net/$IF/operstate)" = 'down' ]]; then +if [[ -z $IF ]] || [[ "$(cat /sys/class/net/$IF/operstate)" = 'down' ]]; then echo down # full text echo down # short text echo \#FF0000 # color