.conkyrc_process
use_xft yes
xftfont Aller:bold:size=8
xftalpha 0.1
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 20
maximum_width 150
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color e3b7b7
default_shade_color FFFFFF
default_outline_color 000000
alignment bottom_right
gap_x 0
gap_y 33
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
## process settings
top_name_width 10
#no_buffers yes
lua_load ~/.conky/draw_bg.lua
lua_draw_hook_pre draw_bg
TEXT
${font Aller:bold:size=8}\
${offset 5}${color F14C4C}Procesos${goto 66}$color$processes
${offset 5}${color F14C4C}Corriendo${goto 66}$color$running_processes
${offset 5}${color F14C4C}Max CPU${goto 66}$color${top name 1}${goto 130}${top_mem cpu 1}
${offset 5}${color F14C4C}Max MEM${goto 66}$color${top_mem name 1}${goto 130}${top_mem mem 1}
draw_bg.lua
--[[
Background by londonali1010 (2009)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
Changelog:
+ v1.0 -- Original release (07.10.2009)
]]
-- Change these settings to affect your background.
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
corner_r=15
-- Set the colour and transparency (alpha) of your background.
bg_colour=0x1D1D1D
bg_alpha=0.86
require 'cairo'
function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)
cairo_move_to(cr,0,0)
cairo_line_to(cr,w-0,0)
cairo_curve_to(cr,w,0,w,0,w,0)
cairo_line_to(cr,w,h-0)
cairo_curve_to(cr,w,h,w,h,w-0,h)
cairo_line_to(cr,corner_r,h)
cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
end