ambevar-dotfiles/.conkyrc

39 lines
1.4 KiB
Lua

-- -*- mode: lua; -*-
conky.config = {
out_to_x = false,
background = false,
cpu_avg_samples = 2,
net_avg_samples = 2,
no_buffers = true,
out_to_console = true,
out_to_stderr = false,
extra_newline = false,
update_interval = 1.0,
uppercase = false,
use_spacer = left,
};
-- Colors are in dzen2 format.
conky.text =
[[^fg(grey)${time %a %d %b %R} \
\
^fg(grey)CPU:^fg(DeepSkyBlue)$cpu% \
^fg(grey)RAM:^fg(DeepSkyBlue)$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} \
]]
-- 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: Add playing track (emacsclient)
-- TODO: Conditional display of network, sound.
-- Probably need $lua+$eval for most of the TODOs.