-- vim: ts=4 sw=4 noet ai cindent syntax=lua

conky.config = {
	own_window = true,
	own_window_title = 'Conky - i3lock',
	own_window_class = 'Conky_i3lock',
	own_window_type = 'override',
	own_window_hints = 'undecorated,above,sticky,skip_taskbar,skip_pager',
	own_window_colour = '383c4a',

	double_buffer = true,
	cpu_avg_samples = 2,
	no_buffers = true,
	update_interval = 1,

	use_xft = true,
	font = 'Noto Sans:style=Normal:size=10',
	default_color = '#fffcf6',
	color1 = '383c4a', -- Background
	color2 = 'fffcf6', -- Foreground
	color3 = '4b5162', -- Background-alt
	color4 = '859900', -- Green (Battery)
	color6 = '2aa198', -- Cyan (Network)
	color7 = 'b58900', -- Yellow (Disk)
	color8 = '268bd2', -- Blue (CPU)
	color9 = 'd33682', -- Magenta (Memory)

	alignment = 'middle_middle',
	xinerama_head = 2,
	minimum_height = 0,
	minimum_width = 400,
	gap_x = 350,
	gap_y = 0,

	format_human_readable = true,

	default_bar_height = 10,
	default_bar_width = 300,
	draw_outline = false,
	draw_graph_borders = false,
	draw_shades = false
}

conky.text = [[
${font Noto Sans:style=Light:size=52}$alignr${time %I:%M %p}$font
${font Noto Sans:style=Light:size=24}$alignr${time %A, %B %d}$font
${if_existing /sys/class/power_supply/BAT0}
${alignr}Battery: $color4${battery_bar}$color$endif
${alignr}CPU: $color8${cpubar}$color
${alignr}Memory: $color9${membar}$color
${alignr}Swap: $color9${swapbar}$color
]]