conky.config = {

-- Conky by Qaisar Nawaz
-- Modified by Dean Loros
-- Conky settings #
	background = false,
	update_interval = 1,
	double_buffer = true,
	no_buffers = true,

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

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

-- Window specifications #
	own_window = true,
        own_window_type = 'desktop',
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
	own_window_title = '',
	own_window_colour = '#484B52',
	own_window_argb_visual = true,
	own_window_argb_value = 180,

	minimum_width = 220, minimum_height = 180,
	maximum_width = 220,

-- Alignment #
	alignment = 'top_right',
	gap_x = 20,
	gap_y = 688,

	border_inner_margin = 4,
	border_outer_margin = 0,

-- Graphics settings #
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

-- Text settings #
	use_xft = true,
	font = 'Technical CE:bold:size=10',
	xftalpha = 0.5,

	override_utf8_locale = true,

	imlib_cache_size = 0,

-- Color scheme #
	default_color = '#000000',
	color1 = 'white',
};

conky.text = [[
${font Technical CE:bold:size=12}${color #ffd800}NETWORK:${hr}${color1}${font}
${goto 10}Down${goto 60}${voffset 5}${downspeed eth2} ${goto 120}/  ${totaldown eth2}
${offset 10}${downspeedgraph eth2 15,200 324D23 77B753 100 -l}
${goto 10}UP${goto 60}${voffset 5}${upspeed eth2} ${goto 120}/  ${totalup eth2}
${offset 10}${upspeedgraph eth2 15,200 4B1B0C FF5C2B 100 -l}
${color}${font Technical CE:bold:size=12}${color #ffd800}ADDRESS:${hr}${color1}${font}
${goto 10}Public IP:${goto 90}${execi 60 wget -O - -q icanhazip.com}
${goto 10}Lan IP:${goto 90}${addr eth2}
${goto 10}Inbound Ports:${goto 120}${tcp_portmon 1 32767 count}
${goto 10}Outbound Ports:${goto 120}${tcp_portmon 32768 61000 count}
${color #ffd800}${hr}${color1}
${goto 10}IP Address:${goto 90}${tcp_portmon 1 65535 rip  0}
${goto 90}${tcp_portmon 1 65535 rip  1}
${goto 90}${tcp_portmon 1 65535 rip  2}
${goto 90}${tcp_portmon 1 65535 rip  3}
${goto 90}${tcp_portmon 1 65535 rip  4}
${goto 90}${tcp_portmon 1 65535 rip  5}
${goto 90}${tcp_portmon 1 65535 rip  6}
${goto 90}${tcp_portmon 1 65535 rip  7}
${goto 90}${tcp_portmon 1 65535 rip  8}
]];
