From 33b59a251b5b7cd893fa0f5c6e21d00c2df3a975 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Thu, 1 Feb 2018 12:38:43 +0100 Subject: [PATCH] conky: Warn on low RAM, conditionally display disk I/O for sda, sdb, sdc --- .conkyrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.conkyrc b/.conkyrc index 3d7ea952..ed195836 100644 --- a/.conkyrc +++ b/.conkyrc @@ -19,20 +19,20 @@ conky.text = [[^fg(grey)${time %a %d %b %R} \ \ ^fg(grey)CPU:^fg(DeepSkyBlue)$cpu% \ -^fg(grey)RAM:^fg(DeepSkyBlue)$memperc% \ +^fg(grey)RAM:^fg(DeepSkyBlue)${if_match ${to_bytes $memeasyfree} < 536870912}^fg(Red)${endif}$memperc% \ ^fg(grey)↓^fg(DeepSkyBlue)${eval $${downspeedf ${gw_iface}}} \ ^fg(grey)↑^fg(DeepSkyBlue)${eval $${upspeedf ${gw_iface}}} \ ^fg(grey)♪^fg(DeepSkyBlue)${exec amixer get Master -M | grep -oE "[0-9]*%"} \ ${if_existing .mu/}^fg(grey)✉^fg(DeepSkyBlue)${execi 30 mu find --nocolor --sortfield=d --maxnum=500 flag:unread AND NOT flag:trashed | wc -l} ${endif}\ ${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} \ +${if_match ${to_bytes ${diskio sda}} > 1048576}^fg(grey)sda:^fg(DeepSkyBlue)${diskio sda}${endif} \ +${if_match ${to_bytes ${diskio sdb}} > 1048576}^fg(grey)sdb:^fg(DeepSkyBlue)${diskio sdb}${endif} \ +${if_match ${to_bytes ${diskio sdc}} > 1048576}^fg(grey)sdc:^fg(DeepSkyBlue)${diskio sdc}${endif} \ ]] -- TODO: Change symbol / color when mixer is mute. -- TODO: Unread mail with native 'new_mails' does not seem to support totals. --- TODO: Change color when e-mails are not 0. --- TODO: Don't display hard-drive IO<1MB. --- TODO: Track all hard-drives. +-- TODO: Change color when e-mails are not 0? -- TODO: Add playing track (emacsclient) -- TODO: Conditional display of network, sound. -- Probably need $lua+$eval for most of the TODOs.