conky: Warn on low RAM, conditionally display disk I/O for sda, sdb, sdc

master
Pierre Neidhardt 2018-02-01 12:38:43 +01:00
parent 9677dff0a4
commit 33b59a251b
1 changed files with 5 additions and 5 deletions

View File

@ -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.