Skip to content

Instantly share code, notes, and snippets.

@hrefhref
Created June 20, 2017 07:57
Show Gist options
  • Save hrefhref/2fd0f8ac3f949421eed86a6ff35756f3 to your computer and use it in GitHub Desktop.
Save hrefhref/2fd0f8ac3f949421eed86a6ff35756f3 to your computer and use it in GitHub Desktop.
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Input Mono Condensed:size=15',
gap_x = 5,
gap_y = 10,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = false,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'override',
own_window_transparenty = true,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'left',
show_graph_scale = false,
show_graph_range = false,
lua_load = "~/.conky_scripts.lua",
}
conky.text = [[
$nodename - $sysname $kernel on $machine
${color grey}Uptime:$color $uptime
$hr
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes ${color grey}Running:$color $running_processes
${cpugraph cpu0 lightgrey grey}
${color grey}Cores:
1:${goto 25} ${cpu cpu1}%${goto 55} ${execi 8 sysctl -n dev.cpu.0.temperature} ${cpubar cpu1}
2:${goto 25} ${cpu cpu2}%${goto 55} ${execi 8 sysctl -n dev.cpu.1.temperature} ${cpubar cpu2}
3:${goto 25} ${cpu cpu3}%${goto 55} ${execi 8 sysctl -n dev.cpu.2.temperature} ${cpubar cpu3}
4:${goto 25} ${cpu cpu4}%${goto 55} ${execi 8 sysctl -n dev.cpu.3.temperature} ${cpubar cpu4}
5:${goto 25} ${cpu cpu5}%${goto 55} ${execi 8 sysctl -n dev.cpu.4.temperature} ${cpubar cpu5}
6:${goto 25} ${cpu cpu6}%${goto 55} ${execi 8 sysctl -n dev.cpu.5.temperature} ${cpubar cpu6}
7:${goto 25} ${cpu cpu7}%${goto 55} ${execi 8 sysctl -n dev.cpu.6.temperature} ${cpubar cpu7}
8:${goto 25} ${cpu cpu8}%${goto 55} ${execi 8 sysctl -n dev.cpu.7.temperature} ${cpubar cpu8}
9:${goto 25} ${cpu cpu9}%${goto 55} ${execi 8 sysctl -n dev.cpu.8.temperature} ${cpubar cpu9}
10:${goto 25} ${cpu cpu10}%${goto 55} ${execi 8 sysctl -n dev.cpu.9.temperature} ${cpubar cpu10}
11:${goto 25} ${cpu cpu11}%${goto 55} ${execi 8 sysctl -n dev.cpu.10.temperature} ${cpubar cpu11}
12:${goto 25} ${cpu cpu12}%${goto 55} ${execi 8 sysctl -n dev.cpu.11.temperature} ${cpubar cpu12}
13:${goto 25} ${cpu cpu13}%${goto 55} ${execi 8 sysctl -n dev.cpu.12.temperature} ${cpubar cpu13}
14:${goto 25} ${cpu cpu14}%${goto 55} ${execi 8 sysctl -n dev.cpu.13.temperature} ${cpubar cpu14}
15:${goto 25} ${cpu cpu15}%${goto 55} ${execi 8 sysctl -n dev.cpu.14.temperature} ${cpubar cpu15}
16:${goto 25} ${cpu cpu16}%${goto 55} ${execi 8 sysctl -n dev.cpu.15.temperature} ${cpubar cpu16}
17:${goto 25} ${cpu cpu17}%${goto 55} ${execi 8 sysctl -n dev.cpu.16.temperature} ${cpubar cpu17}
18:${goto 25} ${cpu cpu18}%${goto 55} ${execi 8 sysctl -n dev.cpu.17.temperature} ${cpubar cpu18}
19:${goto 25} ${cpu cpu19}%${goto 55} ${execi 8 sysctl -n dev.cpu.18.temperature} ${cpubar cpu19}
20:${goto 25} ${cpu cpu20}%${goto 55} ${execi 8 sysctl -n dev.cpu.19.temperature} ${cpubar cpu20}
$hr
${color grey}RAM Usage:$color $mem/$memmax - $memperc%
${membar}
$hr
${color grey}File systems:
${execp zpool list -Ho name,allocated,size,capacity | awk '{ print "${color1} " $1 " ${color}" $2 "/" $3 " ${execbar echo " $4 "}" }'}
$hr
${color grey}Networking:
igb1 ${goto 60}Up:$color ${upspeed igb1} ${color grey}${goto 180}Down:$color ${downspeed igb1}
$hr
${color grey}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color lightgrey} ${top name 6} ${top pid 6} ${top cpu 6} ${top mem 6}
${color lightgrey} ${top name 7} ${top pid 7} ${top cpu 7} ${top mem 7}
${color lightgrey} ${top name 8} ${top pid 8} ${top cpu 8} ${top mem 8}
${color lightgrey} ${top name 9} ${top pid 9} ${top cpu 9} ${top mem 9}
${color lightgrey} ${top name 10} ${top pid 10} ${top cpu 10} ${top mem 10}
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment