From 81b18131191426eb0be7c0d09e252cbf45708c52 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 3 Aug 2017 22:31:31 +0100 Subject: [PATCH] conky: Check for battery presence --- .conkyrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.conkyrc b/.conkyrc index 05ffa9e6..7c1aa32c 100644 --- a/.conkyrc +++ b/.conkyrc @@ -24,7 +24,7 @@ conky.text = ^fg(grey)↑^fg(DeepSkyBlue)${eval $${upspeedf ${gw_iface}}} \ ^fg(grey)♪^fg(DeepSkyBlue)${exec amixer get Master -M | grep -oE "[0-9]*%"} \ ^fg(grey)✉^fg(DeepSkyBlue)${execi 30 mu find --nocolor --sortfield=d --maxnum=500 flag:unread AND NOT flag:trashed | wc -l} \ -^fg(grey)⚡^fg(DeepSkyBlue)${if_match ${battery_percent} <= 5}^fg(Red)${endif}${battery_short}:${battery_time} \ +${if_match $battery_percent != 0}^fg(grey)⚡^fg(DeepSkyBlue)${if_match ${battery_percent} <= 5}^fg(Red)${endif}${battery_short}:${battery_time} ${endif}\ ^fg(grey)sda:^fg(DeepSkyBlue)${diskio sda} \ ]] @@ -34,4 +34,5 @@ conky.text = -- TODO: Don't display hard-drive IO<1MB. -- TODO: Track all hard-drives. -- TODO: Add playing track (emacsclient) +-- TODO: Conditional display of network, sound, e-mail. -- Probably need $lua+$eval for most of the TODOs.