aboutsummaryrefslogtreecommitdiff
path: root/config/i3blocks/scripts/bandwidth
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-03-01 23:39:38 +0100
committerKarel Kočí <cynerd@email.cz>2017-03-01 23:39:38 +0100
commit4c1309e4aed61be74e14cfd05ffd12301ab0473a (patch)
tree4eb12d8b5af5521112e8e80689df28d7a93b580a /config/i3blocks/scripts/bandwidth
parentf6ddf4d2ad7dbefbe45ee35c418aec42be33211d (diff)
downloadmyconfigs-4c1309e4aed61be74e14cfd05ffd12301ab0473a.tar.gz
myconfigs-4c1309e4aed61be74e14cfd05ffd12301ab0473a.tar.bz2
myconfigs-4c1309e4aed61be74e14cfd05ffd12301ab0473a.zip
Move down message from ifnet to bandwidth
I have bandwidth after iface, if there is down message from ifnet separator from bandwidth would disappear so we would have no separator. With this it stays.
Diffstat (limited to 'config/i3blocks/scripts/bandwidth')
-rwxr-xr-xconfig/i3blocks/scripts/bandwidth3
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