95 lines
3.3 KiB
Plaintext

-- Conky, a system monitor https://github.com/brndnmtthws/conky
--
-- This configuration file is Lua code. You can write code in here, and it will
-- execute when Conky loads. You can use it to generate your own advanced
-- configurations.
--
-- Try this (remove the `--`):
--
-- print("Loading Conky config")
--
-- For more on Lua, see:
-- https://www.lua.org/pil/contents.html
conky.config = {
alignment = 'top_right',
background = true,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'blue',
default_shade_color = 'grey',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'DejaVu Sans Mono:size=12',
gap_x = -1910,
gap_y = 350,
minimum_height = 5,
minimum_width = 440,
maximum_width = 450,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'normal',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
color1 = 'red',
color2 = 'cyan',
color3 = 'yellow',
color4='lime',
}
conky.text = [[
#${color blue}Info:$color1 ${scroll 255 Conky $conky_version - $sysname $nodename $kernel $machine}
#$hr
$color2 Uptime:$color3 $uptime
$color2 Frequency (in MHz):$color3 $freq
$color2 Frequency (in GHz):$color3 $freq_g
$color2 RAM Usage:$color3 $mem/$memmax - $memperc% ${membar 4}
$color2 Swap Usage:$color3 $swap/$swapmax - $swapperc% ${swapbar 4}
$color2 CPU Usage:$color3 $cpu%
${cpugraph cpu0}
$color2 Processes:$color3 $processes $color2 Running:$color3 $running_processes
#${cpugraph cpu0}
$hr
$color4 File systems:
$color3 / $color2${fs_used /}/${fs_size /} ${fs_bar 6 /}
$color3 /home $color2${fs_used /home}/${fs_size /home} ${fs_bar 6 /home}
$hr
$color4 Top CPU Hog PID CPU% MEM%
${color yellow} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color yellow} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color yellow} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color yellow} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$hr
$color4 Top Memory Hog PID CPU% MEM%
${color yellow} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color yellow} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color yellow} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color yellow} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
$hr
$color4 Top I/O Hog READ WRITE USE%
${color yellow} ${top_io name 1} ${top_io io_read 1} ${top_io io_write 1} ${top_io io_perc 1}
${color yellow} ${top_io name 2} ${top_io io_read 2} ${top_io io_write 2} ${top_io io_perc 2}
${color yellow} ${top_io name 3} ${top_io io_read 3} ${top_io io_write 3} ${top_io io_perc 3}
${color yellow} ${top_io name 4} ${top_io io_read 4} ${top_io io_write 4} ${top_io io_perc 4}
$hr
$color4 Networking:
${color yellow} Up:$color2 ${upspeed eth1} ${color blue} -${color yellow} Down:$color2 ${downspeed eth1}
]]