From 6cb038f03b92e97ae7181cb1fb6412a2c37f44ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 30 Sep 2013 23:57:34 +0200 Subject: [PATCH] Updated status conky for netbook. --- i3/i3/conky/netbook.conkyrc | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/i3/i3/conky/netbook.conkyrc b/i3/i3/conky/netbook.conkyrc index 366d6aa..a6260ac 100644 --- a/i3/i3/conky/netbook.conkyrc +++ b/i3/i3/conky/netbook.conkyrc @@ -23,7 +23,7 @@ ${if_existing /sys/class/net/wlp2s0}\ W: \ ${if_up wlp2s0}\ ${if_match "${addr wlp2s0}" != "No Address"}\ -${addr wlp2s0} @ ${wireless_essid wlp2s0} (${wireless_link_qual_perc wlp2s0}%)\ +${wireless_essid wlp2s0} (${wireless_link_qual_perc wlp2s0}%)\ ${else}\ No Address\ ${endif}\ @@ -106,7 +106,20 @@ ${endif}\ ${else}\#FF0000\ ${endif}\ " }, -${endif} +${endif}\ +\ +\ +\ +${if_existing /sys/class/power_supply/BAT0}\ +{ "full_text" : " BAT: ${battery_short BAT0} "\ +, "color" : "\ +${if_match ${battery_percent BAT0} < 10}\#FF0000\ +${else}${if_match ${battery_percent BAT0} < 30}\#FFFF00\ +${else}\#00FF00\ +${endif}\ +${endif}\ +" }, +${endif}\ \ \ \ @@ -120,12 +133,6 @@ ${endif}\ \ \ \ -${if_existing /sys/class/power_supply/BAT0}\ -{ "full_text" : " BAT: ${battery_short BAT0} " , "color" : "\#FFFFFF" }, -${endif}\ -\ -\ -\ { "full_text" : " ${time %a %F %T} " , "short_text" : " ${time %a %T} " , "color" : "\#FFFFFF" , "name" : "time" } ],