abbith/conky/conkyrc

41 lines
854 B
Plaintext
Raw Normal View History

require 'io'
function pre_exec(cmd)
local handle = io.popen(cmd)
local output = handle:read("*a")
handle:close()
return output
end
conky.config = {
-- window settings
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,skip_taskbar,skip_pager,below',
own_window_color = '000000',
own_window_class = 'Conky',
own_window_title = 'Abbith Monitor',
alignment = 'top_left',
minimum_width = 1800,
gap_x = 3900,
gap_y = 10,
-- fonts
use_xft = true,
font = 'Source Code Pro:bold:size=14',
xftalpha = 1.0,
update_interval = 1
}
conky.text = pre_exec("cat /proc/cpuinfo | grep 'processor' | wc -l > /home/steve/abbith-config/conky/.cpu") .. [[
# SYS
${voffset -256} \
${goto 1200}${font Open Sans:Bold:size=14}SYSTEM ${vofset -4}${hr 5}${font}
]]