From 2d09f9cfd8f370e93e4d62e0474079a9cf409ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Fri, 27 Sep 2013 02:09:16 +0200 Subject: [PATCH] Added output for volume and for eth0. Note that the output of volume needs the kernel module snd-pcm-oss to be loaded. echo "snd-pcm-oss" >> /etc/modules-load.d/snd-pcm-oss.conf --- i3/i3/conky/virtualarch.conky | 36 +++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/i3/i3/conky/virtualarch.conky b/i3/i3/conky/virtualarch.conky index 4dbf332..5e40102 100644 --- a/i3/i3/conky/virtualarch.conky +++ b/i3/i3/conky/virtualarch.conky @@ -16,12 +16,6 @@ update_interval_on_battery 1.0 #pad_percents 2 #use_spacer left -#TEXT -# -#\ -#\ -#\ -#\ TEXT [ { "full_text" : " \ @@ -100,6 +94,26 @@ ${endif} \ \ \ +${if_existing /sys/class/net/eth0} +{ "full_text" : " \ +eth0: \ +${if_up eth0}\ +${addr eth0}\ +${else}\ +E: down\ +${endif}\ + " , "color" : "\ +${if_up eth0}\ +${if_match "${addr eth0}" != "No Address"}\#00FF00\ +${else}\#FFFF00\ +${endif}\ +${else}\#FF0000\ +${endif}\ +" }, +${endif} +\ +\ +\ { "full_text" : " \ LOAD: ${loadavg 2}\ " , "color" : "\ @@ -112,6 +126,16 @@ ${endif}\ \ \ \ +{ "full_text" : " VOL: \ +${if_match ${mixer} == 0}\ +mute\ +${else}\ +${mixer}%\ +${endif}\ + " , "color" : "\#FFFFFF" }, +\ +\ +\ ${if_existing /proc/acpi/battery/BATO}\ { "full_text" : " BAT: ${battery_short} (${battery_time}) " , "color" : "\#FFFFFF" }, ${endif}\