Skip to content

Instantly share code, notes, and snippets.

@mylk
Last active July 10, 2016 14:42
Show Gist options
  • Save mylk/dffb37703fdf4a4b4e43ba6acb97e775 to your computer and use it in GitHub Desktop.
Save mylk/dffb37703fdf4a4b4e43ba6acb97e775 to your computer and use it in GitHub Desktop.
My conky configuration
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
]]
conky.config = {
background = true,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
use_xft = true,
font = 'DejaVu Sans Mono:size=8',
xftalpha = 0.8,
update_interval = 1,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'override',
own_window_transparent = true,
double_buffer = true,
maximum_width = 220,
minimum_width = 220,
draw_shades = false,
draw_outline = false,
draw_borders = false,
stippled_borders = 10,
border_width = 0,
gap_x = 15,
gap_y = 30,
alignment = "top_right",
use_spacer = "none",
no_buffers = true,
uppercase = false,
stippled_borders = 0,
update_interval = 1
}
conky.text = [[
${color grey}External temperature: ${color}${texeci 900 ~/.tools/temperature.sh}
${color grey}Uptime:${color} $uptime
$hr${voffset 3}
${color grey}Namedays:
${color}${font DejaVu Sans Mono:size=6}${texeci 900 ./.tools/eortologion.sh}${font}
$hr${voffset 3}
${color grey}Filesystems:${voffset 2}
/ $color${fs_used /}/${fs_size /} ${fs_bar 4 /}
$hr${voffset 3}
${color grey}CPU usage:$color $cpu% ${cpubar 4}${voffset 1}
${color grey}Processes:$color $processes ${color grey}- Running:$color $running_processes${voffset 4}
${color grey}Top CPU usage: ${alignr}PID CPU%
${color}${top name 1} ${alignr}${top pid 1}${top cpu 1}
${color}${top name 2} ${alignr}${top pid 2}${top cpu 2}
${color}${top name 3} ${alignr}${top pid 3}${top cpu 3}
${color}${top name 4} ${alignr}${top pid 4}${top cpu 4}
${color}${top name 5} ${alignr}${top pid 5}${top cpu 5}
$hr${voffset 3}
${color grey}RAM usage:$color $mem/$memmax${voffset 1}
$memperc% ${membar 4}${voffset 4}
${color grey}Top memory usage: ${alignr}PID MEM%
${color}${top_mem name 1} ${alignr}${top_mem pid 1}${top_mem mem 1}
${color}${top_mem name 2} ${alignr}${top_mem pid 2}${top_mem mem 2}
${color}${top_mem name 3} ${alignr}${top_mem pid 3}${top_mem mem 3}
${color}${top_mem name 4} ${alignr}${top_mem pid 4}${top_mem mem 4}
${color}${top_mem name 5} ${alignr}${top_mem pid 5}${top_mem mem 5}
$hr${voffset 2}
${color grey}Networking:
Up:$color ${upspeed enp2s0} ${color grey}- Down:$color ${downspeed enp2s0}${voffset 3}
${color grey}Connections:
${color}${font DejaVu Sans Mono:size=6}${texeci 10 netstat -tnp | grep ESTABLISHED | awk -F ":" '{print("::"$2" "$3)}' | awk '{print($1"_"$2":"$3"_"$5)}' | column -t -s "_"}${font}
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment