Hi, hat jemand nen Tipp, wie man den Schatten der Schrift bearbeiten kann? Meiner soll dicker sein, aber ich kann dafür keine Einstellung finden. Danke.
[Sammelthread] Zeig mir deine ".conkyrc"!
![]() Anmeldungsdatum: Beiträge: 756 |
|
![]() Anmeldungsdatum: Beiträge: 82 Wohnort: Edewecht |
Hallo zusammen, ich bastel seit zwei Tagen mit Conky herum und bin da noch ziemlich neu in diesem Metier. Mit Hilfe dieses und diverser anderer Foren ist es mit zumindest gelungen, ein doch relativ bekanntes "conky" ein wenig auf meine Bedürfnisse anzupassen. Von meiner "Zielvorstellung" bin ich zwar noch meilenweit entfernt, und an vielen Stellen ist noch Baustelle angesagt, aber an einem Punkt komme ich aktuell gar nicht weiter. Ich habe in einem Archlinux Forum einen Beitrag gefunden, der ein lua script enthält, das "diskio" Auswertungen in kreisförmige conkys umwandelt. Ich habe versucht das in mein lua Script einzubinden, aber ich krieg es einfach nicht hin. Hat jemand einen Vorschlag oder mag einen Blick auf die Scripte werfen? Mein Lua script: --[[ Ring Meters by londonali1010 (2009) This script draws percentage meters as rings. It is fully customisable; all options are described in the script. IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement near the end of the script uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error. To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua): lua_load ~/scripts/rings-v1.2.1.lua lua_draw_hook_pre ring_stats Changelog: + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009) + v1.2 -- Added option for the ending angle of the rings (07.10.2009) + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009) + v1.0 -- Original release (28.09.2009) arg=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"), fg_colour=0xf0651f, fg_colour=conky_parse("${if_up wlan0}wlan0${else}eth0${endif}"), conky_parse("${cpu}") name=conky_parse("${acpitemp}"), ]] -- A TESTER --set alarm value, this is the value at which bar color will change --alarm_value=80 ----set alarm bar color, 1,0,0,1 = red fully opaque --ar,ag,ab,aa=1,0,0,1 -- couleurs 1 -- 1faaf0 -- f0651f -- f01f42 -- couleurs 2 + flashy -- 008cff -- ff7200 -- ff000d --normal_temp="0x1faaf0" --warn_temp="0xf0651f" --crit_temp="0xf01f42" -- Un mélange des deux normal="0x1faaf0" normal_temp="0x84FF00" warn="0xff7200" crit="0xff000d" -- seulement quand fond nécessaire corner_r=35 bg_colour=0x333333 bg_alpha=0.2 settings_table = { { name='execi 5 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t', arg='', max=512, bg_colour=0x000000, bg_alpha=0.2, fg_colour=0x1faaf0, fg_alpha=0.8, x=340, y=92, radius=23, thickness=10, start_angle=100, end_angle=360 }, { name='nvidia memfreq', arg='', max=800, bg_colour=0x000000, bg_alpha=0.4, fg_colour=0x1faaf0, fg_alpha=0.8, x=340, y=92, radius=35, thickness=10, start_angle=100, end_angle=360 }, { name='nvidia gpufreq', arg='', max=500, bg_colour=0x000000, bg_alpha=0.6, fg_colour=0x1faaf0, fg_alpha=0.8, x=340, y=92, radius=47, thickness=10, start_angle=100, end_angle=360 }, { name='nvidia temp', arg='', max=90, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x84FF00, fg_alpha=1.0, x=340, y=92, radius=57, thickness=4, start_angle=100, end_angle=360 }, { name='acpitemp', arg='', max=90, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x84FF00, fg_alpha=1.0, x=200, y=194, radius=97, thickness=4, start_angle=0, end_angle=240 }, { name='cpu', arg='cpu0', max=100, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=200, y=194, radius=86, thickness=13, start_angle=0, end_angle=240 }, { name='cpu', arg='cpu1', max=100, bg_colour=0x000000, bg_alpha=0.7, fg_colour=0x1faaf0, fg_alpha=0.8, x=200, y=194, radius=71, thickness=12, start_angle=0, end_angle=240 }, { name='memperc', arg='', max=100, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=340, y=308, radius=60, thickness=15, start_angle=180, end_angle=420 }, { name='execi 60 hddtemp -n /dev/sda', arg='', max=70, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x84FF00, fg_alpha=0.8, x=220, y=354, radius=37, thickness=4, start_angle=0, end_angle=240 }, { name='diskio', arg='', max=5*1024*1024, --Bytes/second bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=220, y=354, radius=28, thickness=10, start_angle=0, end_angle=240 }, { name='fs_used_perc', arg='/', max=100, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=220, y=354, radius=16, thickness=10, start_angle=0, end_angle=240 }, { name='downspeedf', arg='', max=2000, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=290, y=420, radius=30, thickness=12, start_angle=180, end_angle=420 }, { name='upspeedf', arg='', max=200, bg_colour=0x000000, bg_alpha=0.6, fg_colour=0x1faaf0, fg_alpha=0.8, x=290, y=420, radius=18, thickness=8, start_angle=180, end_angle=420 }, { name='time', arg='%S', max=60, bg_colour=0x000000, bg_alpha=0.8, fg_colour=0x1faaf0, fg_alpha=0.8, x=230, y=484, radius=30, thickness=12, start_angle=0, end_angle=240 }, { name='time', arg='%M', max=60, bg_colour=0x000000, bg_alpha=0.6, fg_colour=0x1faaf0, fg_alpha=0.8, x=230, y=484, radius=18, thickness=8, start_angle=0, end_angle=240 }, { name='time', arg='%H', max=24, bg_colour=0x000000, bg_alpha=0.4, fg_colour=0x1faaf0, fg_alpha=0.8, x=230, y=484, radius=10, thickness=4, start_angle=0, end_angle=240 }, { name='battery_percent', arg='BAT0', max=100, bg_colour=0x000000, bg_alpha=0.6, fg_colour=0x1faaf0, fg_alpha=0.8, x=274, y=538, radius=18, thickness=10, start_angle=180, end_angle=420 }, { name='acpiacadapter', arg='on-line', max=1, bg_colour=0x000000, bg_alpha=0.6, fg_colour=0x1faaf0, fg_alpha=0.6, x=274, y=538, radius=3, thickness=13, start_angle=0, end_angle=360 }, } require 'cairo' function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end function draw_ring(cr,t,pt) local w,h=conky_window.width,conky_window.height local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle'] local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha'] local angle_0=sa*(2*math.pi/360)-math.pi/2 local angle_f=ea*(2*math.pi/360)-math.pi/2 local t_arc=t*(angle_f-angle_0) -- Draw background ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f) cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) cairo_set_line_width(cr,ring_w) cairo_stroke(cr) -- Draw indicator ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc) cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) cairo_stroke(cr) end function conky_ring_stats() local function setup_rings(cr,pt) local str='' local value=0 str=string.format('${%s %s}',pt['name'],pt['arg']) str=conky_parse(str) value=tonumber(str) if value == nil then value = 0 end pct=value/pt['max'] draw_ring(cr,pct,pt) end 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 for i in pairs(settings_table) do display_temp=temp_watch() setup_rings(cr,settings_table[i]) end end cairo_surface_destroy(cs) cairo_destroy(cr) end -- Contrôle de l'espace disque function disk_watch() warn_disk=93 crit_disk=98 -- poser une boucle plus tard... pas simple disk=tonumber(conky_parse("${fs_used_perc /}")) if disk<warn_disk then settings_table[8]['fg_colour']=normal elseif disk<crit_disk then settings_table[8]['fg_colour']=warn else settings_table[8]['fg_colour']=crit end disk=tonumber(conky_parse("${fs_used_perc /usr}")) if disk<warn_disk then settings_table[10]['fg_colour']=normal elseif disk<crit_disk then settings_table[10]['fg_colour']=warn else settings_table[10]['fg_colour']=crit end end -- Contrôle de la température acpitemp & nvidia & ssd function temp_watch() warn_value_a=65 crit_value_a=75 warn_value_b=60 crit_value_b=75 warn_value_c=55 warn_value_c=65 temperature=tonumber(conky_parse("${acpitemp}")) if temperature<warn_value_a then settings_table[5]['fg_colour']=normal_temp elseif temperature<crit_value_a then settings_table[5]['fg_colour']=warn else settings_table[5]['fg_colour']=crit end temperature=tonumber(conky_parse("${nvidia temp}")) if temperature<warn_value_b then settings_table[4]['fg_colour']=normal_temp elseif temperature<crit_value_b then settings_table[4]['fg_colour']=warn else settings_table[4]['fg_colour']=crit end temperature=tonumber(conky_parse("${execi 60 hddtemp -n /dev/sda}")) if temperature<warn_value_c then settings_table[9]['fg_colour']=normal_temp elseif temperature<crit_value_c then settings_table[9]['fg_colour']=warn else settings_table[9]['fg_colour']=crit end end --[[ Contrôle de la diskio function conky_ring_stats() --local function setup_rings(cr,pt) -- local str='' --local value=0 --str=string.format('${%s %s}',pt['name'],pt['arg']) --str=conky_parse(str) if pt['name'] == 'diskio' or pt['name'] == 'diskio_read' or pt['name'] == 'diskio_write' then --what units? if string.find(str,'M') == nil then if string.find(str,'K') == nil then --bytes --value=tonumber(string.sub(str,0,string.find(str,'B'))) str=string.sub(str,0,string.find(str,'B')-1) value=tonumber(str) else --kilobytes --value=tonumber(string.sub(str,0,string.find(str,'KiB')))*1024*1024 str=string.sub(str,0,string.find(str,'K')-1) value=tonumber(str)*1024 end else --megabytes --value=tonumber(string.sub(str,0,string.find(str,'MiB')))*1024*1024 str=string.sub(str,0,string.find(str,'M')-1) value=tonumber(str)*1024*1024 end if value == nil then value = 0 end else value=tonumber(str) end]] -- Contrôle de l'interface active function iface_watch() iface=conky_parse("${if_existing /proc/net/route eth0}eth0${else}wlan0${endif}") settings_table[12]['arg']=iface settings_table[13]['arg']=iface end function conky_draw_bg() if conky_window==nil then return end local w=conky_window.width local h=conky_window.height local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h) cr=cairo_create(cs) cairo_move_to(cr,corner_r,0) cairo_line_to(cr,w-corner_r,0) cairo_curve_to(cr,w,0,w,0,w,corner_r) cairo_line_to(cr,w,h-corner_r) cairo_curve_to(cr,w,h,w,h,w-corner_r,h) cairo_line_to(cr,corner_r,h) cairo_curve_to(cr,0,h,0,h,0,h-corner_r) cairo_line_to(cr,0,corner_r) cairo_curve_to(cr,0,0,0,0,corner_r,0) cairo_close_path(cr) cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha)) cairo_fill(cr) end function conky_main() temp_watch() disk_watch() iface_watch() conky_ring_stats() -- quand fond nécessaire -- conky_draw_bg() end Hier das lua-Script welches die Formatierungen für die Ringe enthält:
--[[ Ring Meters by londonali1010 (2009) This script draws percentage meters as rings. It is fully customisable; all options are described in the script. IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error. To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua): lua_load ~/scripts/rings-v1.2.1.lua lua_draw_hook_pre ring_stats Changelog: + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009) + v1.2 -- Added option for the ending angle of the rings (07.10.2009) + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009) + v1.0 -- Original release (28.09.2009) ]] conky_background_color = 0x000000 conky_background_alpha = 0.5 ring_background_color = 0xffffff ring_background_alpha = 0.15 ring_foreground_color = 0xffffff ring_foreground_alpha = 0.5 settings_table = { { -- Edit this table to customise your rings. -- You can create more rings simply by adding more elements to settings_table. -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'. name='time', -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. -- If you would not use an argument in the Conky variable, use ''. arg='%I.%M', -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100. max=12, -- "bg_colour" is the colour of the base ring. bg_colour=ring_background_color, -- "bg_alpha" is the alpha value of the base ring. bg_alpha=ring_background_alpha, -- "fg_colour" is the colour of the indicator part of the ring. fg_colour=ring_foreground_color, -- "fg_alpha" is the alpha value of the indicator part of the ring. fg_alpha=ring_foreground_alpha, -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window. x=26, y=30, -- "radius" is the radius of the ring. radius=10, -- "thickness" is the thickness of the ring, centred around the radius. thickness=6, -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative. start_angle=0, -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. end_angle=360 }, { name='time', arg='%M.%S', max=60, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=30, radius=16, thickness=4, start_angle=0, end_angle=360 }, { name='time', arg='%S', max=60, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=30, radius=20, thickness=2, start_angle=0, end_angle=360 }, { name='cpu', arg='cpu1', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=80, radius=19, thickness=3, start_angle=-90, end_angle=210 }, { name='cpu', arg='cpu2', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=80, radius=15, thickness=3, start_angle=-90, end_angle=200 }, { name='memperc', arg='', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=130, radius=19, thickness=5, start_angle=-90, end_angle=200 }, { name='swapperc', arg='', max=100, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=130, radius=13, thickness=5, start_angle=-90, end_angle=180 }, { name='upspeedf', arg='eth0', max=250, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=180, radius=13, thickness=5, start_angle=-90, end_angle=180 }, { name='downspeedf', arg='eth0', max=500, bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=180, radius=19, thickness=5, start_angle=-90, end_angle=200 }, { name='diskio_write', arg='', max=5*1024*1024, --Bytes/second bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=230, radius=13, thickness=5, start_angle=-90, end_angle=200 }, { name='diskio_read', arg='', max=5*1024*1024, --Bytes/second bg_colour=ring_background_color, bg_alpha=ring_background_alpha, fg_colour=ring_foreground_color, fg_alpha=ring_foreground_alpha, x=26, y=230, radius=19, thickness=5, start_angle=-90, end_angle=200 } } require 'cairo' function rgb_to_r_g_b(colour,alpha) return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha end function conky_round_rect(cr, x0, y0, w, h, r) if (w == 0) or (h == 0) then return end local x1 = x0 + w local y1 = y0 + h if w/2 < r then if h/2 < r then cairo_move_to (cr, x0, (y0 + y1)/2) cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0) cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2) cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1) cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2) else cairo_move_to (cr, x0, y0 + r) cairo_curve_to (cr, x0 ,y0, x0, y0, (x0 + x1)/2, y0) cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r) cairo_line_to (cr, x1 , y1 - r) cairo_curve_to (cr, x1, y1, x1, y1, (x1 + x0)/2, y1) cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r) end else if h/2 < r then cairo_move_to (cr, x0, (y0 + y1)/2) cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0) cairo_line_to (cr, x1 - r, y0) cairo_curve_to (cr, x1, y0, x1, y0, x1, (y0 + y1)/2) cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1) cairo_line_to (cr, x0 + r, y1) cairo_curve_to (cr, x0, y1, x0, y1, x0, (y0 + y1)/2) else cairo_move_to (cr, x0, y0 + r) cairo_curve_to (cr, x0 , y0, x0 , y0, x0 + r, y0) cairo_line_to (cr, x1 - r, y0) cairo_curve_to (cr, x1, y0, x1, y0, x1, y0 + r) cairo_line_to (cr, x1 , y1 - r) cairo_curve_to (cr, x1, y1, x1, y1, x1 - r, y1) cairo_line_to (cr, x0 + r, y1) cairo_curve_to (cr, x0, y1, x0, y1, x0, y1- r) end end cairo_close_path (cr) end function draw_ring(cr,t,pt) local w,h=conky_window.width,conky_window.height local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle'] local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha'] local angle_0=sa*(2*math.pi/360)-math.pi/2 local angle_f=ea*(2*math.pi/360)-math.pi/2 local t_arc=t*(angle_f-angle_0) -- Draw background ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f) cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga)) cairo_set_line_width(cr,ring_w) cairo_stroke(cr) -- Draw indicator ring cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc) cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga)) cairo_stroke(cr) end cs, cr = nil -- initialize our cairo surface and context to nil function conky_ring_stats() local function setup_rings(cr,pt) local str='' local value=0 str=string.format('${%s %s}',pt['name'],pt['arg']) str=conky_parse(str) if pt['name'] == 'diskio' or pt['name'] == 'diskio_read' or pt['name'] == 'diskio_write' then --what units? if string.find(str,'M') == nil then if string.find(str,'K') == nil then --bytes --value=tonumber(string.sub(str,0,string.find(str,'B'))) str=string.sub(str,0,string.find(str,'B')-1) value=tonumber(str) else --kilobytes --value=tonumber(string.sub(str,0,string.find(str,'KiB')))*1024*1024 str=string.sub(str,0,string.find(str,'K')-1) value=tonumber(str)*1024 end else --megabytes --value=tonumber(string.sub(str,0,string.find(str,'MiB')))*1024*1024 str=string.sub(str,0,string.find(str,'M')-1) value=tonumber(str)*1024*1024 end if value == nil then value = 0 end else value=tonumber(str) end if value == nil then value = 0 end pct=value/pt['max'] draw_ring(cr,pct,pt) end 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) if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then if cs then cairo_surface_destroy(cs) end cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height) end if cr then cairo_destroy(cr) end cr = cairo_create(cs) local updates=conky_parse('${updates}') update_num=tonumber(updates) if update_num>3 then conky_round_rect(cr, 3, 0, conky_window.width-6, conky_window.height-3, 15) cairo_set_source_rgba(cr, rgb_to_r_g_b(conky_background_color, conky_background_alpha)) cairo_fill(cr) for i in pairs(settings_table) do setup_rings(cr,settings_table[i]) end end cairo_destroy(cr) cr = nil end function conky_cairo_cleanup() cairo_surface_destroy(cs) cs = nil end Wenn das einer lösen könnte, das wäre ein tolles Weihnachtsgeschenk! 😉 Gruß Yahya |
![]() Anmeldungsdatum: Beiträge: 716 |
Hi, scheint ja seit langem Keiner sein Conky hier vorzustellen, ist Conky nicht mehr interessant? Egal, hier ist meine Conky, einfach im Aussehen um schnell die Informationen sehen zu können. Grüßle, Naubaddi |