nice conky !
It is not my creation I have to admit. Got it from another user last year on the Manjaro Forum. If you’re interested in the conky, here we go:
conky
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_right’,
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/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 = “#1793d1”
HTML_color_drive_2 = “#FFFFFF”
HTML_color_drive_3 = “#FFFFFF”
HTML_color_CPU = “#1793d1”
HTML_color_RAM = “#FFFFFF”
HTML_color_CPURAM = “#1793d1”
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=“BAT0”–[[
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 = 2– Number of CPUs
number_of_cpus = 4– Network-interfaces
iface_c = “eth0” --wired
iface_w = “wlp4s0” --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)
endr_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_ycairo_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
endcairo_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 … “%”)
endcairo_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”
endif 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”
endcairo_show_text(cr, battery_time)
endfunction 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
endcairo_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,-(112-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,-(112-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 … ‘}’))
endfunction 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)
endcairo_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 heightcairo_arc(cr,x_pos+radius,y_pos+radius+align_middle,radius,180math.pi/180,(180+90)math.pi/180)
cairo_arc(cr,x_pos+radius+(68-2radius),y_pos+radius+align_middle,radius,-90math.pi/180,(0)math.pi/180)
cairo_arc(cr,x_pos+radius+(68-2radius),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,90math.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, “Arch Linux x86_64”)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(cable):") cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+y_pos-27) cairo_show_text(cr, "Not Connected") 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 if conky_parse('${addr ' .. iface_w .. '}') == "No Address" then 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, "IP(WiFi):") cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+14+y_pos-27) cairo_show_text(cr, "Not Connected") else 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, "IP(WiFi):") cairo_move_to(cr,x_pos+60,gap_y_text+14+14+14+14+y_pos-27) cairo_show_text(cr, conky_parse('${addr ' .. iface_w .. '}')) end
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 = 50if 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
endfunction 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
welcome to the purple side of the moon
bspwm
That’s why I now run Xfce 4.15.
Thanks to @jonathon btw.
That’s a… binary color scheme
You say it by screenfetch in black and white ?
Or Light and Not Light, hence 1 and 0, Binary
i only run i3 or gnome… Xfce and others are no me.
i build bspwm from scratch atm like i do i3 , Awesome i use for 2 year and i try others but no for me . I like keyboard, mouse not me .
most not know gnome great for just keyboard ( built that way )
Joe, wie bekommst Du die Schriftfarbe am Prompt so schön grün? Ich vermisse das bei EOS, da hat die Schrift im Terminal überall die gleiche Farbe (Xfce). Standardmäßig ist zwar Color in der /etc/pacman.conf schon frei geschaltet, das wirkt sich aber offensichtlich nicht auf den Eingabeprompt aus.
Joe, how do you get the font color to be so nice and green at the prompt? I miss that at EOS, the font in the Terminal has the same color everywhere (Xfce). By default, Color is already enabled in /etc/pacman.conf, but this obviously doesn’t affect the prompt.
Openbox (of course)
double-tint2-w-executors (nwgs in aur)
another wallpaper find!
Does white (or light) ever work well in a panel?
brandent
Xfce 4.15 is out? I’m on 4.14
4.15 is not official, the next official version will probably be 4.16.
Glad you liked the icons.
Exactly. Every even release is a stable release, every uneven release is a developer release only.
Yes, really good and very sober and elegant!
Thank you @BONK
Wip