conky.config = {
-- Conky configuration
-- Edited by mmesantos1 2011

-- set to yes if you want Conky to be forked in the background
	background = true,

-- Use Xft?
	use_xft = true,

-- Xft font when Xft is enabled
	xftfont = 'LCD-Light:size=9',

-- Text alpha when using Xft
	xftalpha = 0.8,

-- Update interval in seconds
	update_interval = 1.0,

-- This is the number of times Conky will update before quitting.
-- Set to zero to run forever.
	total_run_times = 0,

-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'dock',

-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,

-- Minimum size of text area
	minimum_width = 2280, minimum_height = 2280,
	maximum_width = 1080,

-- Draw shades?
	draw_shades = false,

-- Draw outlines?
	draw_outline = false,

-- Draw borders around text
	draw_borders = false,
	draw_graph_borders = true,

-- Stippled borders?
	stippled_borders = 0,

-- border margins
-- border_margin = '0',

-- border width
	border_width = 0,

-- Default colors and also border colors
	default_color = 'AD7B7B',
	default_shade_color = 'AD7B7B',
	default_outline_color = 'AD7B7B',
-- own window options
	own_window = true,
	own_window_transparent = true,
	own_window_type = 'dock',
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',

-- Text alignment, other possible values are commented
--alignment top_left
	alignment = 'top_middle',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
-- same thing as passing -x at command line
	gap_x = 0,
	gap_y = 28,

-- Subtract file system buffers from used memory?
	no_buffers = true,

-- set to yes if you want all text to be in uppercase
	uppercase = false,

-- number of cpu samples to average
-- set to 1 to disable averaging
	cpu_avg_samples = 2,

-- number of net samples to average
-- set to 1 to disable averaging
	net_avg_samples = 2,

-- Force UTF8? note that UTF8 support required XFT
	override_utf8_locale = true,

-- Add spaces to keep things from moving about?  This only affects certain objects.
	use_spacer = 'none',

	own_window_argb_value = 255,
	own_window_argb_visual = true,
	own_window_colour = '000000',

	color1 = '444444',
	color2 = '444444',
	color3 = '444444',

-- battery template

    template0 = [[${if_existing /sys/class/power_supply/BAT0}BAT ${battery_bar 9,75 BAT0}                    ${else}${if_existing /sys/class/power_supply/BAT1}BAT ${battery_bar 9,75 BAT1}                    ${endif}${endif}]],

-- time template
   template1 = '%k:%M'

};

-- fluxbox adjustment

if math.floor(os.execute("pgrep -x fluxbox>/dev/null")/256) == 0 then
   conky.config.own_window_transparent = true
   conky.config.own_window_argb_visual = false
end

conky.text = [[
${font LCD:size=12}${color1}\
${alignc}CPU ${cpubar 9,75}                    \
MEM ${membar 9,75}                    \
SWP ${swapbar 9,75}                    \
${template0}\
HDD ${fs_bar 9,75}
##TIME##

${voffset 10}${font LCD-Light:size=74}${color2}${alignc}${if_match "pmfix${time %p}" == "pmfix"}${time $template1}${else}${time %l:%M}${endif}${font}

${voffset 10}${font LCD-Light:size=34}${color3}${alignc}${execi 60 date +%A | sed 'y/áÁàÀãÃâÂéÉêÊíÍóÓõÕôÔúÚñÑçÇ/aAaAaAaAeEeEiIoOoOoOuUnNcC/'} | ${time %d} ${time  %B} ${font}
]];
