diff options
Diffstat (limited to 'config/i3blocks/scripts/bandwidth')
-rwxr-xr-x | config/i3blocks/scripts/bandwidth | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/i3blocks/scripts/bandwidth b/config/i3blocks/scripts/bandwidth index cfefaf2..ba15a27 100755 --- a/config/i3blocks/scripts/bandwidth +++ b/config/i3blocks/scripts/bandwidth @@ -21,6 +21,9 @@ INTERFACE=$(ip route | awk '/^default .* (wlp|enp)/ { print $5 ; exit }') # Issue #36 compliant. if ! [ -e "/sys/class/net/${INTERFACE}/operstate" ] || ! [ "`cat /sys/class/net/${INTERFACE}/operstate`" = "up" ] then + echo down # full text + echo down # short text + echo \#FF0000 # color exit 0 fi |