Opulent October (2018) Screenshots

screenshots

#102

@xircon already tick that but not effecting…


#103

Hmmm then I don’t know, works here.

I have this as well (but probably so have you):


#104

Alright got it working. Selected kvantum for widget style. Damn this is really smooth :smiley:


#105

Just for fun:


https://imgur.com/boCwXc1

Theme: oomox-arc-base with “dracula” colour theme
icons: Ozon-Teal, with moka as fallback


#106

Manjaro 18.0 aka Illryia with Gnome 3.30 and Kernel 4.19


#107

Gotta ask where you got that pic please


#108

I googled “sesame Street wallpapers” and browsed the image results, then visited the source site of various images. Found a “best sesame Street wallpapers” type of page and downloaded a few wallpapers there, including this one.

But you can just Google “sesame Street wallpaper zombie” for this specific wallpaper.


#109

I am very boring nowadays, so I hardly customize stuff. Specially since I like Manjaro defaults a lot.

The picture is from Unsplash by the user Bence Boros.


#110

normal user here :kissing:


#111

@spooky @themanlie there is a november thread now…


#112

:sweat_smile: I’m just too excited


#113

@GrayJack could you help me with installing your configs? I ■■■■■■■ LOVE this desktop. I see your fetch says KDE but this sure as hell looks like i3 with polybar… If you could PM me, I’d really appreciate it!


#114

Would you mind sharing your conky?


#115

Here are the conky files:

conkyrc:

conky.config = {
	background = false,
	update_interval = 1,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 2048,
	imlib_cache_size = 0,


	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_argb_visual = true,
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',

	border_inner_margin = 0,
	border_outer_margin = 0,

	minimum_width = 213, minimum_height = 700,--width height


	alignment = 'middle_left',
	gap_x = 10,
	gap_y = 0,

	draw_shades = true,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

	use_xft = true,
	font = 'pftempestafivecondensed:size=6',
	xftalpha = 0.5,

	uppercase = false,

	lua_load = '~/.conky/Conky_Revisited_2/Conky_Square_Vertical/settings.lua',
--	lua_load = 'settings.lua',
	lua_draw_hook_pre = 'start_widgets',

};

conky.text = [[
]];

settings.lua:

--[[
---------------- USER CONFIGURATION ----------------
Change the parameters below to fit your needs.
]]--

-- Colors

HTML_color_battery = "#FFFFFF"
HTML_color_drive_1 = "#FFFFFF"
HTML_color_drive_2 = "#FFFFFF"
HTML_color_drive_3 = "#FFFFFF"
HTML_color_CPU = "#FFFFFF"
HTML_color_RAM = "#FFFFFF"
HTML_color_CPURAM = "#FFFFFF"
HTML_color_INFO = "#FFFFFF"
HTML_color_BORDER = "#34BE5B"
transparency_battery = 0.5
transparency_drive_1 = 0.5
transparency_drive_2 = 0.5
transparency_drive_3 = 0.5
transparency_CPU = 0.5
transparency_RAM = 0.5
transparency_CPURAM = 0.5
transparency_INFO = 0.5
transparency_border = 0.8

--[[
Show battery:
	true
	false
]]--
battery = true

--[[
Battery number. Default=BAT0. Change this number if you get following errors:
conky: can't open /sys/class/power_supply/BAT0/uevent
conky: can't open /proc/acpi/battery/BAT0/state: No such file or directory
Try with number BAT1 or BAT2 e.t.c.
]]--
battery_number="BAT1"

--[[
Modes:
	1 = Show squared background area
	2 = No background area (style 1)
	3 = Hides text. Show circular background area
]]--
mode = 1

-- Path of drives for free space status.
drive_paths = {"/", "/home", "/mnt/Data"}

-- Names of drives for free space status.
drive_names = {"Root", "Home", "Data"}

-- Number of drives to show free space status. Adjust the conky "height"-parameter in config manually to adjust for the increase in Conky height when adding more drives.
drives = 3

-- Number of CPUs
number_of_cpus = 4

-- Network-interfaces
iface_c = "enp4s0" --wired
iface_w = "wlp5s0" --wireless

-- Mount point local for external server
server_path = "/mnt/Mediashare"

-- Special border width
special_border = 2

-- Normal border size
border_size = 0

-- Distance between each area
gap_y = -1





























--[[
-- DON'T EDIT BELOW IF YOU DO NOT KNOW WHAT YOU ARE DOING!!!
]]--


require 'cairo'

operator = {CAIRO_OPERATOR_SOURCE,
			CAIRO_OPERATOR_CLEAR
		   }
		   
operator_transpose = {CAIRO_OPERATOR_CLEAR,
			CAIRO_OPERATOR_SOURCE
		   }

function hex2rgb(hex)
	hex = hex:gsub("#","")
	return (tonumber("0x"..hex:sub(1,2))/255), (tonumber("0x"..hex:sub(3,4))/255), tonumber(("0x"..hex:sub(5,6))/255)
end


r_battery, g_battery, b_battery = hex2rgb(HTML_color_battery)
r_CPU, g_CPU, b_CPU = hex2rgb(HTML_color_CPU)
r_RAM, g_RAM, b_RAM = hex2rgb(HTML_color_RAM)
r_CPURAM, g_CPURAM, b_CPURAM = hex2rgb(HTML_color_CPURAM)
r_INFO, g_INFO, b_INFO = hex2rgb(HTML_color_INFO)

r_border, g_border, b_border = hex2rgb(HTML_color_BORDER)

r_drive_1, g_drive_1, b_drive_1 = hex2rgb(HTML_color_drive_1)
r_drive_2, g_drive_2, b_drive_2 = hex2rgb(HTML_color_drive_2)
r_drive_3, g_drive_3, b_drive_3 = hex2rgb(HTML_color_drive_3)

drive_colors = {{r_drive_1, g_drive_1, b_drive_1,transparency_drive_1},
				{r_drive_2, g_drive_2, b_drive_2,transparency_drive_2},
				{r_drive_3, g_drive_3, b_drive_3,transparency_drive_3}}


function draw_square(cr,pos_x,pos_y,rectangle_x,rectangle_y,color1,color2,color3, trans)
	cairo_set_operator(cr, operator[mode])
	cairo_set_source_rgba(cr, color1,color2,color3,trans)
	cairo_set_line_width(cr, 2)  
	cairo_rectangle(cr, pos_x, pos_y, rectangle_x,rectangle_y)
	cairo_fill(cr)

	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_line_width(cr, special_border)
	cairo_set_source_rgba(cr, color1,color2,color3, trans)
	cairo_move_to(cr,pos_x+3,pos_y+3)	  	
	cairo_rel_line_to(cr,rectangle_x-6,0)
	cairo_rel_line_to(cr,0, rectangle_y-6)
	cairo_rel_line_to(cr,-(rectangle_x-6))
	cairo_close_path(cr)
	cairo_stroke(cr)
	
	cairo_set_operator(cr, operator[mode])
	cairo_set_source_rgba(cr, r_border,g_border,b_border,transparency_border)
	cairo_set_line_width(cr, border_size) 
	cairo_rectangle(cr, pos_x, pos_y, rectangle_x,rectangle_y)
	cairo_stroke(cr)
	
	
end

function draw_battery(cr,pos_x, pos_y,start_rect_height,color1,color2,color3,trans,gap_y_text)

	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_source_rgba(cr, color1,color2,color3,trans)
	cairo_set_line_width(cr, 2)  
	set_battery_blocks_x = 0
	battery_gap_y = (start_rect_height/2)-27/2+pos_y

	cairo_move_to(cr,pos_x,battery_gap_y)
	cairo_rel_line_to(cr,64,0)
	cairo_rel_line_to(cr,0,((27-10)/2))
	cairo_rel_line_to(cr,5,0)
	cairo_rel_line_to(cr,0,10)
	cairo_rel_line_to(cr,-5,0)
	cairo_rel_line_to(cr,0,((27-10)/2))
    cairo_rel_line_to(cr,-64,0)
	cairo_close_path(cr)
	cairo_fill(cr)
	
	number_of_charges = math.floor((12 / 100)*tonumber(conky_parse('${battery_percent ' .. battery_number .. '}')))
	cairo_set_operator(cr, operator[mode])
	for i=1,number_of_charges do
		cairo_rectangle(cr,pos_x+3+set_battery_blocks_x,3+battery_gap_y,3,21)
		cairo_fill(cr)
		set_battery_blocks_x = set_battery_blocks_x + 5
	end
 
	cairo_set_operator(cr, operator_transpose[mode])
	percent_font_size = 21
	cairo_set_font_size(cr,percent_font_size)
	cairo_move_to(cr,pos_x+69+10, gap_y_text+pos_y)
  
	percent = conky_parse('${battery_percent ' .. battery_number .. '}')
	--ct = cairo_text_extents_t:create()	
	--cairo_text_extents(cr,percent,ct)
  
	if string.len(percent) == 1 then
		cairo_show_text(cr,"0" .. percent .. "%")
	elseif string.len(percent) == 3 then
		cairo_show_text(cr,"100%")
	else
		cairo_show_text(cr,percent .. "%")
	end

	cairo_move_to(cr,pos_x+69+10, gap_y_text+18+pos_y)
  	
	cairo_set_font_size(cr,12)
	status = conky_parse('${battery ' .. battery_number .. '}')
	if string.find(status, "discharging") then
		status = "Discharging"
	elseif string.find(status, "charging") then
		status = "Charging"
	elseif string.find(status, "charged") then
		status = "Charged"		
	end
	
	if status == "" then
		status = "N/A"
	end
	cairo_show_text(cr, status)
	cairo_move_to(cr,pos_x+69+10, gap_y_text+18+14+pos_y)
	battery_time = conky_parse('${battery_time ' .. battery_number .. '}')
	
	if battery_time == "" then
		battery_time = "AC-power"
	end
	
	cairo_show_text(cr, battery_time)
end

function draw_folder(cr,x_pos,y_pos,start_rect_height,hdd,folder_name,r_color_drive,g_color_drive,b_color_drive,transparency_drive,gap_y_text)

-- Draw indicator
	cairo_set_source_rgba(cr,r_color_drive,g_color_drive,b_color_drive,transparency_drive)
	cairo_set_operator(cr, operator_transpose[mode])
	local distance_between_arcs = 0
	local number_of_arcs = 20
	local arcs_length = (360 - (number_of_arcs*distance_between_arcs)) / number_of_arcs
	local start_angel = 270
	local used_blocks = math.floor((number_of_arcs / 100) * tonumber(conky_parse('${fs_used_perc ' .. hdd .. '}')))
	local radius_outer = 34
	local radius_inner = 24
	local radius = 29
	cairo_set_line_width(cr, 2)
	
--	cairo_arc(cr,x_pos+10+34,(start_rect_height/2)+y_pos,radius_outer,start_angel*math.pi/180,(start_angel+360)*math.pi/180)
--	cairo_stroke(cr)
			
--	cairo_arc(cr,x_pos+10+34,(start_rect_height/2)+y_pos,radius_inner,start_angel*math.pi/180,(start_angel+360)*math.pi/180)
--	cairo_stroke(cr)

	cairo_set_line_width(cr, 6)
	cairo_arc(cr,x_pos+10+34,(start_rect_height/2)+y_pos,radius,start_angel*math.pi/180,(start_angel+360)*math.pi/180)
	cairo_stroke(cr)
	
	cairo_set_line_width(cr, 3)
	cairo_set_operator(cr, operator[mode])
	for i=1, used_blocks do
		cairo_arc(cr, x_pos+10+34,(start_rect_height/2)+y_pos,radius,start_angel*math.pi/180,(start_angel+arcs_length)*math.pi/180)
		cairo_stroke(cr)
		start_angel = start_angel+arcs_length+distance_between_arcs
	end

	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_source_rgba(cr,r_color_drive,g_color_drive,b_color_drive,transparency_drive)
	cairo_set_line_width(cr, 2)
	
	cairo_move_to(cr,x_pos+10+34-15,(start_rect_height/2-5.5)+y_pos)
	cairo_rel_line_to(cr,15,-9)
	cairo_rel_line_to(cr,15,9)
	cairo_rel_line_to(cr,0,4)
	cairo_rel_line_to(cr,-15,-9)
	cairo_rel_line_to(cr,-15,9)
	cairo_close_path(cr)
	cairo_fill(cr)
	
	cairo_move_to(cr,x_pos+10+34-15+24,(start_rect_height/2-5.5)-6+y_pos)
    cairo_rel_line_to(cr,4,2)
	cairo_rel_line_to(cr,0,-5)
	cairo_rel_line_to(cr,-4,0)
	cairo_close_path(cr)
	cairo_fill(cr)
	
	cairo_move_to(cr,x_pos+10+34-15+4,(start_rect_height/2-5.5)+5+y_pos)
	cairo_rel_line_to(cr,11,-7)
	cairo_rel_line_to(cr,11,7)
	cairo_rel_line_to(cr,0,15)
	cairo_rel_line_to(cr,-(11*2-math.abs(-8))/2,0)
	cairo_rel_line_to(cr,0,-6)
	cairo_rel_line_to(cr,-8,0)
	cairo_rel_line_to(cr,0,6)
	cairo_rel_line_to(cr,-(11*2-math.abs(-8))/2,0)
	cairo_close_path(cr)
	cairo_fill(cr)


	
	cairo_set_operator(cr, operator_transpose[mode])
	str = folder_name .. ": " .. conky_parse('${fs_used_perc ' .. hdd .. '}') .. "%"
	cairo_set_font_size(cr, 21)
	cairo_move_to(cr,x_pos+10+34+34+10,gap_y_text+y_pos)
	cairo_show_text(cr, conky_parse('${fs_used_perc ' .. hdd .. '}') .. "%")
	
	cairo_set_font_size(cr,12)
	
	cairo_move_to(cr, x_pos+10+34+34+10,gap_y_text+18+y_pos)
	cairo_show_text(cr,folder_name .. " used")
	cairo_move_to(cr, x_pos+10+34+34+10,gap_y_text+18+14+y_pos)
	cairo_show_text(cr,conky_parse('${fs_used ' .. hdd .. '}') .. "/" .. conky_parse('${fs_size ' .. hdd .. '}'))
end

function draw_cpu(cr,number_of_cpus,x_pos,y_pos,r,g,b,transparency,gap_y_text)
	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_source_rgba(cr,r,g,b,transparency)

	multipler = 68/100	

	for i=1,number_of_cpus do
		cairo_rectangle(cr,x_pos+((68-(5*(number_of_cpus-1)))/number_of_cpus+5)*(i-1),y_pos+68+10,(68-(5*(number_of_cpus-1)))/number_of_cpus,-multipler*tonumber(conky_parse('${cpu cpu' .. tostring(i) .. '}')))
		cairo_fill(cr)
	end
	
	cairo_set_font_size(cr, 21)
	cairo_move_to(cr,x_pos+68+10,gap_y_text+y_pos)
	cairo_show_text(cr, conky_parse('${cpu cpu0}' .. "%"))
	
	cairo_set_font_size(cr,12)
	cairo_move_to(cr, x_pos+68+10,gap_y_text+18+y_pos)
	cairo_show_text(cr, conky_parse("CPU temp: " .. "${execi 10 sensors | grep 'Core 0' |cut -c 17-18}" .. "°C"))
	
	cairo_set_font_size(cr,12)
	cairo_move_to(cr, x_pos+68+10,gap_y_text+18+14+y_pos)
	cairo_show_text(cr,conky_parse("Speed: " .. '${freq_g 0}' .. "GHz"))
	
	
	
end

function draw_ram(cr,x_pos,y_pos, radius,r_RAM, g_RAM, b_RAM, transparency_RAM,gap_y_text)
	
	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_source_rgba(cr,r_RAM,g_RAM,b_RAM,transparency_RAM)
	cairo_set_line_width(cr, 2)
	local align_middle = 14 -- 50 pixel height
	
	cairo_arc(cr,x_pos+radius,y_pos+radius+align_middle,radius,180*math.pi/180,(180+90)*math.pi/180)
	cairo_arc(cr,x_pos+radius+(68-2*radius),y_pos+radius+align_middle,radius,-90*math.pi/180,(0)*math.pi/180)
	cairo_arc(cr,x_pos+radius+(68-2*radius),y_pos+radius+20+align_middle,radius,0*math.pi/180,(90)*math.pi/180)
	cairo_arc(cr,x_pos+radius,y_pos+radius+20+align_middle,radius,90*math.pi/180,(180)*math.pi/180)

	cairo_close_path(cr)
	cairo_fill(cr)
	
	local multipler = 7/100
	local free_memory = math.floor((conky_parse('${memperc}'))*multipler) 
	
	for i=1, 7 do
		cairo_move_to(cr,x_pos+radius+(8*(i-1))-2,y_pos+radius+20+align_middle+10+1+2+1)
		cairo_rel_line_to(cr,4,0)
		cairo_arc(cr,x_pos+radius+(8*(i-1)),y_pos+radius+20+align_middle+10+1+2+1+4,2,0*math.pi/180,(180)*math.pi/180)
		cairo_close_path(cr)
		
		if i <= free_memory then
			cairo_stroke_preserve(cr)
			cairo_fill(cr)
		else
			cairo_stroke(cr)
		end
		
		cairo_move_to(cr,x_pos+radius+(8*(i-1))+2,y_pos+align_middle-4)
		cairo_rel_line_to(cr,-4,0)
		cairo_arc(cr,x_pos+radius+(8*(i-1)),y_pos+align_middle-4-4,2,180*math.pi/180,(0)*math.pi/180)
		cairo_close_path(cr)
		
		if i <= free_memory then
			cairo_stroke_preserve(cr)
			cairo_fill(cr)
		else
			cairo_stroke(cr)
		end
		
	end
	
	cairo_set_operator(cr, operator[mode])
	cairo_set_font_size(cr, 21)
	cairo_move_to(cr,x_pos-1+33-22,y_pos+align_middle+1+19+8)
	cairo_show_text(cr, "RAM")
	
	cairo_set_operator(cr, operator_transpose[mode])
	cairo_set_font_size(cr, 21)
	cairo_move_to(cr,x_pos+68+10,gap_y_text+y_pos-10)
	cairo_show_text(cr, tostring(conky_parse('${memperc}')) .. "%")
	
	cairo_set_font_size(cr,12)
	cairo_move_to(cr, x_pos+68+10,gap_y_text+18+y_pos-10)
	cairo_show_text(cr,"Used RAM")
	
	cairo_set_font_size(cr,12)
	cairo_move_to(cr, x_pos+68+10,gap_y_text+18+14+y_pos-10)
	cairo_show_text(cr,conky_parse('${mem}') .. '/' .. conky_parse('${memmax}'))

end

function draw_cpuram(cr,x_pos,y_pos, radius,r_CPURAM, g_CPURAM, b_CPURAM, transparency_CPURAM,gap_y_text)
	
	
	cairo_set_source_rgba(cr,r_CPURAM,g_CPURAM,b_CPURAM,transparency_CPURAM)
	cairo_set_line_width(cr, 2)
	cairo_set_operator(cr, operator_transpose[mode])
	
    cairo_set_font_size(cr, 12)
	cairo_move_to(cr,x_pos,gap_y_text+y_pos-27)
	cairo_show_text(cr, "TOP PROCESS")
    cairo_move_to(cr,x_pos+112,gap_y_text+y_pos-27)
    cairo_show_text(cr, "CPU")
    cairo_move_to(cr,x_pos+151,gap_y_text+y_pos-27)
    cairo_show_text(cr, "RAM")
    
    cairo_set_font_size(cr, 10)
	cairo_move_to(cr,x_pos,gap_y_text+14+y_pos-27)
	cairo_show_text(cr, conky_parse('${top name 1}'))
    cairo_move_to(cr,x_pos+108,gap_y_text+14+y_pos-27)
    cairo_show_text(cr, conky_parse('${top cpu 1}'))
    cairo_move_to(cr,x_pos+148,gap_y_text+14+y_pos-27)
    cairo_show_text(cr, conky_parse('${top mem 1}'))
	
	cairo_set_font_size(cr, 10)
	cairo_move_to(cr,x_pos,gap_y_text+14+10+y_pos-27)
	cairo_show_text(cr, conky_parse('${top name 2}'))
    cairo_move_to(cr,x_pos+108,gap_y_text+14+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top cpu 2}'))
    cairo_move_to(cr,x_pos+148,gap_y_text+14+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top mem 2}'))
	
	cairo_set_font_size(cr, 10)
	cairo_move_to(cr,x_pos,gap_y_text+14+10+10+y_pos-27)
	cairo_show_text(cr, conky_parse('${top name 3}'))
    cairo_move_to(cr,x_pos+108,gap_y_text+14+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top cpu 3}'))
    cairo_move_to(cr,x_pos+148,gap_y_text+14+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top mem 3}'))
    
    cairo_set_font_size(cr, 10)
	cairo_move_to(cr,x_pos,gap_y_text+14+10+10+10+y_pos-27)
	cairo_show_text(cr, conky_parse('${top name 4}'))
    cairo_move_to(cr,x_pos+108,gap_y_text+14+10+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top cpu 4}'))
    cairo_move_to(cr,x_pos+148,gap_y_text+14+10+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top mem 4}'))
    
    cairo_set_font_size(cr, 10)
	cairo_move_to(cr,x_pos,gap_y_text+14+10+10+10+10+y_pos-27)
	cairo_show_text(cr, conky_parse('${top name 5}'))
    cairo_move_to(cr,x_pos+108,gap_y_text+14+10+10+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top cpu 5}'))
    cairo_move_to(cr,x_pos+148,gap_y_text+14+10+10+10+10+y_pos-27)
    cairo_show_text(cr, conky_parse('${top mem 5}'))

end

function draw_info(cr,x_pos,y_pos, radius,r_INFO, g_INFO, b_INFO, transparency_INFO,gap_y_text)
	
	
	cairo_set_source_rgba(cr,r_INFO,g_INFO,b_INFO,transparency_INFO)
	cairo_set_line_width(cr, 2)
	cairo_set_operator(cr, operator_transpose[mode])
	
    cairo_set_font_size(cr, 12)
	cairo_move_to(cr,x_pos,gap_y_text+y_pos-27)
	cairo_show_text(cr, "OS:")
    cairo_move_to(cr,x_pos+60,gap_y_text+y_pos-27)
    cairo_show_text(cr, "Manjaro Linux")
    
    cairo_set_font_size(cr, 12)
	cairo_move_to(cr,x_pos,gap_y_text+14+y_pos-27)
	cairo_show_text(cr, "Kernel:")
    cairo_move_to(cr,x_pos+60,gap_y_text+14+y_pos-27)
    cairo_show_text(cr, conky_parse('${kernel}'))
	
	cairo_set_font_size(cr, 12)
	cairo_move_to(cr,x_pos,gap_y_text+14+14+y_pos-27)
	cairo_show_text(cr, "Uptime:")
    cairo_move_to(cr,x_pos+60,gap_y_text+14+14+y_pos-27)
    cairo_show_text(cr, conky_parse('${uptime}'))
    
    if conky_parse('${addr ' .. iface_c .. '}') == "No Address" then
    
        cairo_set_font_size(cr, 12)
        cairo_move_to(cr,x_pos,gap_y_text+14+14+14+y_pos-27)
        cairo_show_text(cr, "IP(wifi):")
        cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+y_pos-27)
        cairo_show_text(cr, conky_parse('${addr ' .. iface_w .. '}'))
        
    else
        
        cairo_set_font_size(cr, 12)
        cairo_move_to(cr,x_pos,gap_y_text+14+14+14+y_pos-27)
        cairo_show_text(cr, "IP(cable):")
        cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+y_pos-27)
        cairo_show_text(cr, conky_parse('${addr ' .. iface_c .. '}'))
        
    end
	
	cairo_set_font_size(cr, 12)
	cairo_move_to(cr,x_pos,gap_y_text+14+14+14+14+y_pos-27)
	cairo_show_text(cr, "Server:")
    cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+14+y_pos-27)
    cairo_show_text(cr, conky_parse('${if_mounted ' .. server_path .. '}Connected${else}Not connected${endif}'))
    
end

function draw_function(cr)
	local w,h=conky_window.width,conky_window.height	
	cairo_select_font_face (cr, "Dejavu Sans Book", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);

    local start_rect_height = 88
   	 -- Start with 172
    local start_rect_width = 200
    local gap_y_text = (start_rect_height/2)-7
    local gap_x = 10
	local gap_x_fix = 2
	local gap_y_fix = 2
	local radius = 10
	local start_rect_height_no_battery = 50

	if battery then
		draw_square(cr,gap_x_fix,gap_y_fix, start_rect_width, start_rect_height,r_battery, g_battery, b_battery, transparency_battery)
		draw_battery(cr,gap_x+gap_x_fix, gap_y_fix,start_rect_height,r_battery, g_battery, b_battery, transparency_battery,gap_y_text)

		for i=1,drives do
			draw_square(cr,gap_x_fix,(start_rect_height+gap_y)*i+gap_y_fix, start_rect_width, start_rect_height,drive_colors[i][1], drive_colors[i][2], drive_colors[i][3], drive_colors[i][4])
			draw_folder(cr,gap_x_fix,(start_rect_height+gap_y)*i+gap_y_fix,start_rect_height,drive_paths[i],drive_names[i],drive_colors[i][1], drive_colors[i][2], drive_colors[i][3], drive_colors[i][4],gap_y_text)
		end
		draw_square(cr,gap_x_fix,(start_rect_height+gap_y)*(drives+1)+gap_y_fix, start_rect_width, start_rect_height,r_CPU, g_CPU, b_CPU, transparency_CPU)
		draw_cpu(cr,number_of_cpus,gap_x+gap_x_fix,(start_rect_height+gap_y)*(drives+1)+gap_y_fix,r_CPU, g_CPU, b_CPU, transparency_CPU,gap_y_text)
		draw_square(cr,gap_x_fix,(start_rect_height+gap_y)*(drives+2)+gap_y_fix, start_rect_width, start_rect_height,r_RAM, g_RAM, b_RAM, transparency_RAM)
		draw_ram(cr,gap_x+gap_x_fix,(start_rect_height+gap_y)*(drives+2)+10+gap_y_fix, radius, r_RAM, g_RAM, b_RAM, transparency_RAM,gap_y_text)
        draw_square(cr,gap_x_fix,(start_rect_height+gap_y)*(drives+3)+gap_y_fix, start_rect_width, start_rect_height,r_CPURAM, g_CPURAM, b_CPURAM, transparency_CPURAM)
        draw_cpuram(cr,gap_x+gap_x_fix,(start_rect_height+gap_y)*(drives+3)+10+gap_y_fix, radius, r_CPURAM, g_CPURAM, b_CPURAM, transparency_CPURAM,gap_y_text)
        draw_square(cr,gap_x_fix,(start_rect_height+gap_y)*(drives+4)+gap_y_fix, start_rect_width, start_rect_height,r_INFO, g_INFO, b_INFO, transparency_INFO)
        draw_info(cr,gap_x+gap_x_fix,(start_rect_height+gap_y)*(drives+4)+10+gap_y_fix, radius, r_INFO, g_INFO, b_INFO, transparency_INFO,gap_y_text)
	else
		for i=1,drives do
			draw_square(cr,gap_x_fix,start_rect_height_no_battery+gap_y_fix, start_rect_width, start_rect_height,drive_colors[i][1], drive_colors[i][2], drive_colors[i][3], drive_colors[i][4])
			draw_folder(cr,gap_x_fix,(start_rect_height_no_battery)+gap_y_fix,start_rect_height,drive_paths[i],drive_names[i],drive_colors[i][1], drive_colors[i][2], drive_colors[i][3], drive_colors[i][4],gap_y_text)
			start_rect_height_no_battery = start_rect_height_no_battery + gap_y + 88 + gap_y_fix
		end
		draw_square(cr,gap_x_fix,start_rect_height_no_battery+gap_y_fix, start_rect_width, start_rect_height,r_CPU, g_CPU, b_CPU, transparency_CPU)
		draw_cpu(cr,number_of_cpus,gap_x+gap_x_fix,(start_rect_height_no_battery)+gap_y_fix,r_CPU, g_CPU, b_CPU, transparency_CPU,gap_y_text)
		start_rect_height_no_battery = start_rect_height_no_battery + gap_y + 88 + gap_y_fix
		draw_square(cr,gap_x_fix,(start_rect_height_no_battery)+gap_y_fix, start_rect_width, start_rect_height,r_RAM, g_RAM, b_RAM, transparency_RAM)
		draw_ram(cr,gap_x+gap_x_fix,(start_rect_height_no_battery)+10+gap_y_fix, radius, r_RAM, g_RAM, b_RAM, transparency_RAM,gap_y_text)
        draw_square(cr,gap_x_fix,(start_rect_height_no_battery)+gap_y_fix, start_rect_width, start_rect_height,r_RAM, g_RAM, b_RAM, transparency_RAM)
        draw_cpuram(cr,gap_x+gap_x_fix,(start_rect_height+gap_y)*(drives+3)+10+gap_y_fix, radius, r_CPURAM, g_CPURAM, b_CPURAM, transparency_CPURAM,gap_y_text)
	end
end

function conky_start_widgets()
	local function draw_conky_function(cr)
		local str=''
		local value=0		
		draw_function(cr)
	end
	
	-- Check that Conky has been running for at least 5s

	if conky_window==nil then return end
	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
	
	local cr=cairo_create(cs)	
	
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)
	
	if update_num>5 then
		draw_conky_function(cr)
	end
	cairo_surface_destroy(cs)
	cairo_destroy(cr)
end

conky_clock:

-- conky_clock.conf
--
-- author        : vlkon
-- version       : 20180805_01
-- conky version : conky 1.10.6_pre compiled Thu Dec 29 16:29:51 UTC 2016 for Linux 4.1.37-1-MANJARO x86_64
--
-- license:
--
--    This program is free software: you can redistribute it and/or modify
--    it under the terms of the GNU General Public License as published by
--    the Free Software Foundation, either version 3 of the License, or
--    (at your option) any later version.
--
--    This program is distributed in the hope that it will be useful,
--    but WITHOUT ANY WARRANTY; without even the implied warranty of
--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--    GNU General Public License for more details.
--
--    You should have received a copy of the GNU General Public License
--    along with this program.  If not, see <https://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------

conky.config = {
--  This is a comment

-- Create own window instead of using desktop
    own_window = true,
    own_window_type = 'normal',
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_colour = '000000',   -- 000000 is black
    own_window_transparent = false, -- set transparency level to 0 (redundant with argb value 0)
    own_window_argb_visual = true,  -- use transparency
    own_window_argb_value = 0,      -- transparency level (0-255 -> 0%-100%)
    double_buffer = true,           -- eliminates flicker

--Window size
    minimum_width = 425,
    maximum_width = 425,
    minimum_height = 185,

-- Window position
    alignment = 'top_middle',
-- Gap between borders of screen and text
    gap_x = 0,
    gap_y = 0,

--Window borders
    draw_borders = false,
    stippled_borders = 1,           -- border dash legth (pixel)
    border_width = 2,               -- border dash width (pixel)
--Border margins (offset)
    border_inner_margin = 0,
    border_outer_margin = 0,

-- Font - not really necessary since everything is in a lua script
    use_spacer = 'none',
    use_xft = true,                 -- anti-aliased font and stuff
    xftalpha = 1.0,                 -- value between 0.0 and 1.0
    font = 'Liberation Sans:pixelsize=12',

    draw_outline = false,           -- amplifies text if yes
    draw_shades = false,
    uppercase = false,              -- set to yes if you want all text to be in uppercase
    pad_percents = 3,               -- fix percents to 3 digits (keep format)
    format_human_readable = false,  -- volumes are in KiB, MiB or GiB - keep 'false' for lua script
    override_utf8_locale = true,

-- Update interval in seconds
    update_interval = 1.0,
--  update_interval_on_battery 5.0, -- only for laptop

-- Misc
    total_run_times = 0,            -- 0=run forever
--  text_buffer_size = 256,         -- default buffer size
    temperature_unit = 'celsius',
    no_buffers = true,              -- memory usage doesn't contain cache and buffers -- keep for lua script
    if_up_strictness = 'link',      -- 'up', 'link' or 'address' -- keep for lua script

-- Number of samples to average - set to 1 to disable averaging
    cpu_avg_samples = 1,
    diskio_avg_samples = 1,
    net_avg_samples = 1,

--Graph setting
    draw_graph_borders = false,
    show_graph_range = false,       -- time range
    show_graph_scale = false,       -- max graph value

--Colors
    default_color = 'FFFFFF',       -- default text color
    default_shade_color = '000000',
    default_outline_color = '000000',

--Templates

--Lua scripts
    lua_load = '/home/lucien/.conky/Conky_Revisited_2/Conky_Square_Vertical/conky_clock.lua',
    lua_draw_hook_post = 'conky_main'
};

conky.text = [[#This is comment and everything else is in the lua script]];

conky_clock.lua:

 -- conky_clock.lua
--
-- author        : vlkon
-- version       : 20180805_01
-- conky version : conky 1.10.6_pre compiled Thu Dec 29 16:29:51 UTC 2016 for Linux 4.1.37-1-MANJARO x86_64
--
-- license:
--
--    This program is free software: you can redistribute it and/or modify
--    it under the terms of the GNU General Public License as published by
--    the Free Software Foundation, either version 3 of the License, or
--    (at your option) any later version.
--
--    This program is distributed in the hope that it will be useful,
--    but WITHOUT ANY WARRANTY; without even the implied warranty of
--    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
--    GNU General Public License for more details.
--
--    You should have received a copy of the GNU General Public License
--    along with this program.  If not, see <https://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------

require 'cairo'

master_settings = {
    clock = {status = 1,    x = 160.0,      y = 80.0},      -- origin position - in this case it is bottom-center of the clock ":"
    date =  {status = 1,    x = 290.0,      y = 100.0},     -- origin position - top-right corner of day number
    scale = {               x = 1.0,        y = 1.0}        -- scale from top-left corner
}


-------------------------------------------------------------------------------
-- Slightly finer adjustment of each visual
-------------------------------------------------------------------------------

clock = {
    x_offset = 12.0,                                        -- offset hours and minutes from the center
    y_offset = 7.0,                                         -- offset colon ":" along y-direction from the center
    size = 100.0,
    font = 'Alex Brush',
    slant = CAIRO_FONT_SLANT_NORMAL,
    weight = CAIRO_FONT_WEIGHT_NORMAL,
    rgb = 0xFFFFFF,
    alpha = 0.6
}

date = {
    day = {
        status = 1,                                         -- 1:ON, 0:OFF
        x_offset = -15.0,            y_offset = 0.0,             -- offset from origin (top-right corner of a day number)
        size = 52.0,                                        -- font size
        font = 'Alex Brush',
        slant = CAIRO_FONT_SLANT_NORMAL,
        weight = CAIRO_FONT_WEIGHT_NORMAL,
        rgb = 0x34BE5B,
        alpha = 0.8,
        text = '${time %_d}',
        x_align = 'RIGHT'                                   -- 'LEFT', 'RIGHT' x-alignment of the text
    },
    month = {
        status = 1,                                         -- 1:ON, 0:OFF
        x_offset = -7.0,         y_offset = 0.0,             -- offset from origin (top-right corner of a day number)
        size = 28.0,                                        -- font size
        font = 'Petit Formal Script',
        slant = CAIRO_FONT_SLANT_NORMAL,
        weight = CAIRO_FONT_WEIGHT_NORMAL,
        rgb = 0xFFFFFF,
        alpha = 0.6,
        text = '${time %B}',
        x_align = 'LEFT'                                    -- 'LEFT', 'RIGHT' x-alignment of the text
    },
    year = {
        status = 1,                                         -- 1:ON, 0:OFF
        x_offset = 40.0,            y_offset = 30.0,                -- offset from origin (top-right corner of a day number)
        size = 26.0,                                        -- font size
        font = 'Alex Brush',
        slant = CAIRO_FONT_SLANT_NORMAL,
        weight = CAIRO_FONT_WEIGHT_NORMAL,
        rgb = 0x34BE5B,
        alpha = 0.8,
        text = '${time %Y}',
        x_align = 'LEFT'                                    -- 'LEFT', 'RIGHT' x-alignment of the text
    },
    wday = {
        status = 1,                                         -- 1:ON, 0:OFF
        x_offset = 40.0,         y_offset = 55.0,                -- offset from origin (top-right corner of a day number)
        size = 20.0,                                        -- font size
        font = 'Petit Formal Script',
        slant = CAIRO_FONT_SLANT_NORMAL,
        weight = CAIRO_FONT_WEIGHT_NORMAL,
        rgb = 0xD0D0D0,
        alpha = 0.6,
        text = '${time %A}',
        x_align = 'RIGHT'                                   -- 'LEFT', 'RIGHT' x-alignment of the text
    },
}


-------------------------------------------------------------------------------
-- Functions start here
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- converts color in hex to decimal R,G,B values and pass along alpha value
function convert_rgba_split(rgb, alpha)
    return ((rgb / 0x10000) % 0x100) / 255.0, ((rgb / 0x100) % 0x100) / 255.0, (rgb % 0x100) / 255.0, alpha
end


-------------------------------------------------------------------------------
-- print clock in 24h format "HH:MM" with fixed position of ":"
function draw_clock(cr)

    if master_settings.clock.status == 0 then return end    -- no date visualisation

    local x_org = master_settings.clock.x       -- clock origin
    local y_org = master_settings.clock.y
    local x, y = 0, 0               -- generic position variables

    local fe=cairo_font_extents_t:create()
    tolua.takeownership(fe)     -- garbage collection - don't know if used correctly or if it is even needed

    local te=cairo_text_extents_t:create()
    tolua.takeownership(te)     -- garbage collection - don't know if used correctly or if it is even needed

    -- get current time
    local hour = conky_parse('${time %0H}')
    local minute = conky_parse('${time %0M}')
        -- string.format('%02d', tonumber(conky_parse('${time %H}')))   -- possible formating

    cairo_set_font_size(cr, clock.size)
    cairo_set_source_rgba (cr,convert_rgba_split(clock.rgb, clock.alpha))
    cairo_select_font_face (cr, clock.font, clock.slant, clock.weight)

    cairo_font_extents (cr, fe)

    -- print ":"
    cairo_text_extents (cr, ':', te)
    x = x_org - te.x_bearing - te.width / 2
    y = y_org  - fe.ascent/2 + te.height/2 + clock.y_offset
    cairo_move_to (cr, x, y)
    cairo_show_text (cr, ':')

    -- print hours
    cairo_text_extents (cr, hour, te)
    x = x_org - te.x_bearing - te.width - clock.x_offset
    y = y_org
    cairo_move_to (cr, x, y)
    cairo_show_text (cr, hour)

    --print minutes
    cairo_text_extents (cr, minute, te)
    x = x_org - te.x_bearing + clock.x_offset
    y = y_org
    cairo_move_to (cr, x, y)
    cairo_show_text (cr, minute)
end


-------------------------------------------------------------------------------
-- draw each element present in date
function date_part(cr, x_org, y_org, setting)
    if setting.status == 0 then return end  -- no date element visualisation

    local text = conky_parse(setting.text)

    local fe=cairo_font_extents_t:create()
    tolua.takeownership(fe)     -- garbage collection - don't know if used correctly or if it is even needed

    local te=cairo_text_extents_t:create()
    tolua.takeownership(te)     -- garbage collection - don't know if used correctly or if it is even needed

    cairo_set_font_size(cr, setting.size)
    cairo_set_source_rgba (cr,convert_rgba_split(setting.rgb, setting.alpha))
    cairo_select_font_face (cr, setting.font, setting.slant, setting.weight)

    cairo_font_extents (cr, fe)

    cairo_text_extents (cr, text, te)

        if setting.x_align == 'RIGHT' then
            x = x_org - te.x_bearing  - te.width + setting.x_offset
        elseif setting.x_align == 'LEFT' then
            x = x_org - te.x_bearing + setting.x_offset
        else
            return      -- error in config
        end
    y = y_org + fe.ascent + setting.y_offset    --"+fe.ascent" instead of "-te.y_bearing" also possible but it holds different values depending on the text

    cairo_move_to (cr, x, y)
    cairo_show_text (cr, text)

end


-------------------------------------------------------------------------------
-- main date procedure
function draw_date(cr)

    if master_settings.date.status == 0 then return end -- no date visualisation

    for iii in pairs(date)  do
        date_part(cr, master_settings.date.x, master_settings.date.y, date[iii])
    end
end


-------------------------------------------------------------------------------
-- Main function called by conky
-------------------------------------------------------------------------------

-------------------------------------------------------------------------------
-- Main function called by conky
function conky_main()
    if conky_window == nil then
        return
    end

    local cs = cairo_xlib_surface_create(conky_window.display,
                                        conky_window.drawable,
                                        conky_window.visual,
                                        conky_window.width,
                                        conky_window.height)
    local cr = cairo_create(cs)

    local updates = tonumber(conky_parse('${updates}'))

    cairo_save (cr)
    cairo_scale (cr, master_settings.scale.x, master_settings.scale.y)  -- If you don't want to use a amagnifying glass this scales everything

    if updates > 3 then

        draw_clock(cr)
        draw_date(cr)

    end

    cairo_restore(cr)                                                   -- restore scale setting to 1.0,1.0

    cairo_destroy(cr)
    cairo_surface_destroy(cs)
end