Conky no ubuntu 15.10 mostra decoração da janela

3

Depois de atualizar para o Ubuntu 15,10 conky mostrar bordas da janela e sombras.

Dealgumaformaeupossocontornarisso?

Aquiestáoconteúdodotema:

#==============================================================================#conkyrc_seamod#Date:05/02/2012#Author:SeaJey#Version:v0.1#License:DistributedunderthetermsofGNUGPLversion2orlater##Thisversionisamodificationofconkyrc_lunaticowichismodificationofconkyrc_orange##conkyrc_orange:http://gnome-look.org/content/show.php?content=137503&forumpage=0#conkyrc_lunatico:http://gnome-look.org/content/show.php?content=142884#==============================================================================backgroundyesupdate_interval1cpu_avg_samples1net_avg_samples2temperature_unitcelsiusdouble_bufferyesno_buffersyestext_buffer_size2048gap_x40gap_y70minimum_size300900maximum_width350own_windowyesown_window_typenormalown_window_classconkyown_window_transparentnoown_window_argb_visualyesown_window_colour000000own_window_argb_value102own_window_hintsundecorate,sticky,skip_taskbar,skip_pager,belowborder_inner_margin0border_outer_margin0alignmenttop_rightdraw_shadesnodraw_outlinenodraw_bordersnodraw_graph_bordersnooverride_utf8_localeyesuse_xftyesxftfontcaviardreams:size=10xftalpha0.5uppercaseno#Definingcolorsdefault_colorFFFFFF#ShadesofGraycolor1DDDDDDcolor2AAAAAAcolor3888888#Orangecolor4EF5A29#Greencolor577B753#Loadingluascriptfordrawningringslua_load./seamod_rings.lualua_draw_hook_postmain##Systeminformationusingconkycapabilities#Headerwithbasesysteminfoown_window_argb_value102own_window_colour000000TEXT${fontUbuntu:size=10,weight:bold}${color4}SYSTEM${hr2}${offset15}${fontUbuntu:size=10,weight:normal}${color1}$sysname$kernel${offset15}${fontUbuntu:size=10,weight:normal}${color1}$nodename${offset15}${fontUbuntu:size=10,weight:normal}${color1}Uptime:$uptime#ShowingCPUGraph${voffset20}${offset120}${cpugraph40,183666666666666}${voffset-25}${offset90}${fontUbuntu:size=10,weight:bold}${color5}CPU#ShowingTOP5CPU-consumers${offset105}${fontUbuntu:size=10,weight:normal}${color4}${topname1}${alignr}${topcpu1}%${offset105}${fontUbuntu:size=10,weight:normal}${color1}${topname2}${alignr}${topcpu2}%${offset105}${fontUbuntu:size=10,weight:normal}${color2}${topname3}${alignr}${topcpu3}%${offset105}${fontUbuntu:size=10,weight:normal}${color3}${topname4}${alignr}${topcpu4}%${offset105}${fontUbuntu:size=10,weight:normal}${color3}${topname5}${alignr}${topcpu5}%#ShowingmemorypartwithTOP5${voffset40}${offset90}${fontUbuntu:size=10,weight:bold}${color5}MEM${offset105}${fontUbuntu:size=10,weight:normal}${color4}${top_memname1}${alignr}${top_memmem1}%${offset105}${fontUbuntu:size=10,weight:normal}${color1}${top_memname2}${alignr}${top_memmem2}%${offset105}${fontUbuntu:size=10,weight:normal}${color2}${top_memname3}${alignr}${top_memmem3}%${offset105}${fontUbuntu:size=10,weight:normal}${color3}${top_memname4}${alignr}${top_memmem4}%${offset105}${fontUbuntu:size=10,weight:normal}${color3}${top_memname4}${alignr}${top_memmem5}%#Showingdiskpartitions:root,homeandData${voffset28}${offset90}${fontUbuntu:size=10,weight:bold}${color5}DISKS${offset120}${diskiograph33,183666666666666}${voffset-30}${voffset20}${offset15}${fontUbuntu:size=9,weight:bold}${color1}Free:${fontUbuntu:size=9,weight:normal}${fs_free/}${alignr}${fontUbuntu:size=9,weight:bold}Used:${fontUbuntu:size=9,weight:normal}${fs_used/}${offset15}${fontUbuntu:size=9,weight:bold}${color1}Free:${fontUbuntu:size=9,weight:normal}${fs_free/home}${alignr}${fontUbuntu:size=9,weight:bold}Used:${fontUbuntu:size=9,weight:normal}${fs_used/home}${offset15}${fontUbuntu:size=9,weight:bold}${color1}Free:${fontUbuntu:size=9,weight:normal}${fs_free/media/Data}${alignr}${fontUbuntu:size=9,weight:bold}Used:${fontUbuntu:size=9,weight:normal}${fs_used/media/Data}#Networkdata(mydesktophaveonlyLAN).ETHERNETringismostlyuselessbutlookspretty,maininfoisinthegraphs${voffset43}${offset90}${fontUbuntu:size=10,weight:bold}${color5}ETHERNET${voffset40}${offset15}${color1}${fontUbuntu:size=9,weight:bold}Up:${alignr}${fontUbuntu:size=9,weight:normal}$color2${upspeedeth0}/${totalup}${offset15}${upspeedgrapheth040,2854B1B0CFF5C2B100-l}${offset15}${color1}${fontUbuntu:size=9,weight:bold}Down:${alignr}${fontUbuntu:size=9,weight:normal}$color2${downspeedeth0}/${totaldown}${offset15}${downspeedgrapheth040,285324D2377B753100-l}${color4}${hr2}

Aquiestáoconteúdodeseamod_rings.lua:

--==============================================================================--seamod_rings.lua----Date:05/02/2012--Author:SeaJey--Version:v0.1--License:DistributedunderthetermsofGNUGPLversion2orlater----Thisversionisamodificationoflunatico_rings.luawichismodificationofconky_orange.lua----conky_orange.lua:http://gnome-look.org/content/show.php?content=137503&forumpage=0--lunatico_rings.lua:http://gnome-look.org/content/show.php?content=142884--==============================================================================require'cairo'----------------------------------------------------------------------------------gaugeDATAgauge={{name='cpu',arg='cpu0',max_value=100,x=70,y=130,graph_radius=54,graph_thickness=5,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=64,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='',caption_weight=1,caption_size=9.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.3,},{name='cpu',arg='cpu1',max_value=100,x=70,y=130,graph_radius=48,graph_thickness=5,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=40,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='',caption_weight=1,caption_size=9.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.3,},{name='cpu',arg='cpu2',max_value=100,x=70,y=130,graph_radius=20,graph_thickness=5,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=30,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='',caption_weight=1,caption_size=9.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.3,},{name='cpu',arg='cpu3',max_value=100,x=70,y=130,graph_radius=14,graph_thickness=5,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=4,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='',caption_weight=1,caption_size=9.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.3,},{name='memperc',arg='',max_value=100,x=70,y=300,graph_radius=54,graph_thickness=10,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=42,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=23,graduation_thickness=0,graduation_mark_thickness=2,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.5,caption='',caption_weight=1,caption_size=10.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.3,},{name='fs_used_perc',arg='/media/Data',max_value=100,x=70,y=470,graph_radius=54,graph_thickness=7,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=64,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=23,graduation_thickness=0,graduation_mark_thickness=2,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='Data',caption_weight=1,caption_size=12.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.5,},{name='fs_used_perc',arg='/home/',max_value=100,x=70,y=470,graph_radius=42,graph_thickness=7,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=32,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=23,graduation_thickness=0,graduation_mark_thickness=2,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='Home',caption_weight=1,caption_size=12.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.5,},{name='fs_used_perc',arg='/',max_value=100,x=70,y=470,graph_radius=30,graph_thickness=7,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=1.0,txt_radius=22,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=23,graduation_thickness=0,graduation_mark_thickness=2,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='Root',caption_weight=1,caption_size=12.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.5,},{name='downspeedf',arg='eth0',max_value=100,x=70,y=660,graph_radius=54,graph_thickness=7,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=0,txt_radius=64,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='Down',caption_weight=1,caption_size=12.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.5,},{name='upspeedf',arg='eth0',max_value=100,x=70,y=660,graph_radius=42,graph_thickness=7,graph_start_angle=180,graph_unit_angle=2.7,graph_unit_thickness=2.7,graph_bg_colour=0xffffff,graph_bg_alpha=0.1,graph_fg_colour=0xFFFFFF,graph_fg_alpha=0.3,hand_fg_colour=0xEF5A29,hand_fg_alpha=0,txt_radius=30,txt_weight=0,txt_size=9.0,txt_fg_colour=0xEF5A29,txt_fg_alpha=1.0,graduation_radius=28,graduation_thickness=0,graduation_mark_thickness=1,graduation_unit_angle=27,graduation_fg_colour=0xFFFFFF,graduation_fg_alpha=0.3,caption='Up',caption_weight=1,caption_size=12.0,caption_fg_colour=0xFFFFFF,caption_fg_alpha=0.5,},}---------------------------------------------------------------------------------rgb_to_r_g_b--convertscolorinhexatodecimal--functionrgb_to_r_g_b(colour,alpha)return((colour/0x10000)%0x100)/255.,((colour/0x100)%0x100)/255.,(colour%0x100)/255.,alphaend---------------------------------------------------------------------------------angle_to_position--convertdegreetoradandrotate(0degreeistop/north)--functionangle_to_position(start_angle,current_angle)localpos=current_angle+start_anglereturn((pos*(2*math.pi/360))-(math.pi/2))end---------------------------------------------------------------------------------draw_gauge_ring--displaysgauges--functiondraw_gauge_ring(display,data,value)localmax_value=data['max_value']localx,y=data['x'],data['y']localgraph_radius=data['graph_radius']localgraph_thickness,graph_unit_thickness=data['graph_thickness'],data['graph_unit_thickness']localgraph_start_angle=data['graph_start_angle']localgraph_unit_angle=data['graph_unit_angle']localgraph_bg_colour,graph_bg_alpha=data['graph_bg_colour'],data['graph_bg_alpha']localgraph_fg_colour,graph_fg_alpha=data['graph_fg_colour'],data['graph_fg_alpha']localhand_fg_colour,hand_fg_alpha=data['hand_fg_colour'],data['hand_fg_alpha']localgraph_end_angle=(max_value*graph_unit_angle)%360--backgroundringcairo_arc(display,x,y,graph_radius,angle_to_position(graph_start_angle,0),angle_to_position(graph_start_angle,graph_end_angle))cairo_set_source_rgba(display,rgb_to_r_g_b(graph_bg_colour,graph_bg_alpha))cairo_set_line_width(display,graph_thickness)cairo_stroke(display)--arcofvaluelocalval=value%(max_value+1)localstart_arc=0localstop_arc=0locali=1whilei<=valdostart_arc=(graph_unit_angle*i)-graph_unit_thicknessstop_arc=(graph_unit_angle*i)cairo_arc(display,x,y,graph_radius,angle_to_position(graph_start_angle,start_arc),angle_to_position(graph_start_angle,stop_arc))cairo_set_source_rgba(display,rgb_to_r_g_b(graph_fg_colour,graph_fg_alpha))cairo_stroke(display)i=i+1endlocalangle=start_arc--handstart_arc=(graph_unit_angle*val)-(graph_unit_thickness*2)stop_arc=(graph_unit_angle*val)cairo_arc(display,x,y,graph_radius,angle_to_position(graph_start_angle,start_arc),angle_to_position(graph_start_angle,stop_arc))cairo_set_source_rgba(display,rgb_to_r_g_b(hand_fg_colour,hand_fg_alpha))cairo_stroke(display)--graduationsmarkslocalgraduation_radius=data['graduation_radius']localgraduation_thickness,graduation_mark_thickness=data['graduation_thickness'],data['graduation_mark_thickness']localgraduation_unit_angle=data['graduation_unit_angle']localgraduation_fg_colour,graduation_fg_alpha=data['graduation_fg_colour'],data['graduation_fg_alpha']ifgraduation_radius>0andgraduation_thickness>0andgraduation_unit_angle>0thenlocalnb_graduation=graph_end_angle/graduation_unit_anglelocali=0whilei<nb_graduationdocairo_set_line_width(display,graduation_thickness)start_arc=(graduation_unit_angle*i)-(graduation_mark_thickness/2)stop_arc=(graduation_unit_angle*i)+(graduation_mark_thickness/2)cairo_arc(display,x,y,graduation_radius,angle_to_position(graph_start_angle,start_arc),angle_to_position(graph_start_angle,stop_arc))cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))cairo_stroke(display)cairo_set_line_width(display,graph_thickness)i=i+1endend--textlocaltxt_radius=data['txt_radius']localtxt_weight,txt_size=data['txt_weight'],data['txt_size']localtxt_fg_colour,txt_fg_alpha=data['txt_fg_colour'],data['txt_fg_alpha']localmovex=txt_radius*math.cos(angle_to_position(graph_start_angle,angle))localmovey=txt_radius*math.sin(angle_to_position(graph_start_angle,angle))cairo_select_font_face(display,"ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end


-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end

    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
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 display = cairo_create(cs)

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

    if update_num > 5 then
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)

end

Os outros dois problemas com ele, é que ele aparece na janela de encaixe como um ícone e também permanece em apenas uma tela.

    
por Calin 16.12.2015 / 18:19

3 respostas

7

Eu tive um problema semelhante após a atualização para o Ubuntu 15.10. Você pode ajustar a linha:

own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below

no arquivo ~/.conky/Conky Seamod/conky_seamod . Depois disso, o conky funcionou como padrão.

Se isso resolver o problema, você poderá aceitar a resposta para que outras pessoas possam aprender com ele.

    
por VRR 23.12.2015 / 17:32
0

Baseado em esta solução sugerida por VRR

você pode substituir todos os 'undecorate' encontrados dentro da pasta conky por 'undecorated'.

vá para a pasta conky ~/.conky

então execute

find ./ -type f -exec sed -i "s/undecorate/undecorated/g" {} \; 
find ./ -type f -exec sed -i "s/undecoratedd/undecorated/g" {} \;
    
por Taghouti Tarek 07.05.2017 / 02:13
-1

Basta instalar o gerenciador de conky. No terminal:

sudo add-apt-repository ppa:teejee2008/ppa

sudo apt-get update

sudo apt-get install conky-manager

Abra o gerenciador de conky, selecione o tema, vá para editar widget > transparency , embora esteja definido como transparente, reproduza um pouco para defini-lo como opaco e de volta para transparente.

    
por Ursu Dumitru 02.11.2016 / 09:26

Tags