dotfiles/home/dot_conkyrc-main
Maximilian Friedersdorff 7dc536bd75 Move chezmoi root
2024-09-30 16:26:45 +01:00

54 lines
1.2 KiB
Lua

-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
out_to_x = false,
own_window = false,
out_to_console = true,
short_units = true,
update_interval = 0.5,
background = false,
max_text_width = 0,
total_run_times = 0,
short_units = true,
if_up_strictness = 'address',
use_spacer = 'left',
cpu_avg_samples = 2,
};
conky.text = [[
[
${if_match "${exec cat ~/.local/share/pomodoro}"!="done"}
{"full_text": "Pomodoro: ${exec cat ~/.local/share/pomodoro}", "color": "\#ea0501"},
${endif}
{"full_text": "Tea: ${execi 30 tail -n 1 ~/.local/share/teatimer.log}s", "color": "\#ffffff"},
{"full_text": "~ ${fs_free /home}", "color": "\#ffffff"},
{"full_text": "/ ${fs_free /root}", "color": "\#ffffff"},
{"full_text": "IO r:${diskio_read} w:${diskio_write}", "color": "\#ffffff"},
{"full_text": "CPU ${cpu cpu0}%", "color": "\#ffffff"},
{
"full_text": "RAM ${memperc}%",
"color":
${if_match ${memperc}<90}
"\#ffffff"
${else}
"\#ff0000"
${endif}
},
{
"full_text": "BAT ${battery_short} ${battery_time}",
"color":
${if_match ${battery_percent}<20}
"\#ff0000"
${else}
"\#00ff00"
${endif}
},
{"full_text": "${time %Y-%m-%d %H:%M}", "color": "\#ffffff"}
],
]];