Skip to content

Instantly share code, notes, and snippets.

@programizer
Created August 21, 2018 09:23
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save programizer/c645c21525487e9d9dbe47f1611ca80b to your computer and use it in GitHub Desktop.
Save programizer/c645c21525487e9d9dbe47f1611ca80b to your computer and use it in GitHub Desktop.
conky.config = {
background = true,
use_xft = true,
font = 'Ubuntu:pixelsize=14',
xftalpha = 0.5,
update_interval = 1,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 260, minimum_height = 5,
maximum_width = 260,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
default_color = 'grey',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 14,
gap_y = 48,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = false
};
conky.text = [[
System Info ${hr 2 }
${color #55aaff}$nodename$color - $sysname $kernel on $machine
${color #55aaff}Uptime:$color $uptime ${color lightgrey}${color #55aaff}
Load:$color $loadavg${color lightgrey}
${color #55aaff}CPU: ${color lightgrey}Intel Pentium 2020M @ $color${freq_g} GHz
Core 1: ${cpubar cpu1 6,160} ${cpu cpu1}%
Core 2: ${cpubar cpu2 6,160} ${cpu cpu2}%
CPU utilisation$alignr ${cpu cpu0}%
${cpubar cpu0}
${cpugraph 000000 ffffff}
Memory ${hr 2}
MEM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc $swap / $swapmax $alignr $swapperc%
$swapbar
${if_match "$swap"!="0B " }
${exec notify-send "Warning: Swapping"}
$endif
Top Processes ${hr 2}
$processes processes
NAME ${alignr} PID CPU MEM
${top name 1} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}
wlan0 ${hr 2}
Up: ${upspeed wlan0}
Down: ${downspeed wlan0}
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment