From 31cd9c96b84569c9f0e66f039d717e2f6a732640 Mon Sep 17 00:00:00 2001 From: Florian Date: Wed, 15 Jul 2015 14:26:46 +0200 Subject: make conkyrc handle mutiple ethernet interfaces --- i3/conkyrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/i3/conkyrc b/i3/conkyrc index f37098a..96ac7fa 100644 --- a/i3/conkyrc +++ b/i3/conkyrc @@ -63,9 +63,14 @@ TEXT {"name":"download", "color":"\#ffffff", "full_text": "⤋: ${downspeed wlp2s0}"}, ${else} ${if_up enp0s20u2} - {"name":"eth0", "color": "\#339966", "full_text": "IP: ${addr enp0s20u2} "}, + {"name":"ethernet", "color": "\#339966", "full_text": "IP: ${addr enp0s20u2} "}, {"name":"download", "color":"\#ffffff", "full_text": "⤋: ${downspeed enp0s20u2}"}, + ${else} ${if_up eth0} + {"name":"ethernet", "color": "\#339966", "full_text": "IP: ${addr eth0} "}, + {"name":"download", "color":"\#ffffff", "full_text": "⤋: ${downspeed eth0}"}, + + ${else} {"name":"nonet", "full_text": "no connection" }, ${endif} -- cgit v1.2.3