miércoles, 29 de agosto de 2007

conky, double buffering en xfce4

Pues trasteando como siempre he decidido instalar conky en mi imac g3 (233Mhz + 64Mb de ram) en xfce4... Así que...

# apt-get install conky
$ conky

Pero... Cual es mi sorpresa al ver que...

*@imac:~$ conky
Conky: drawing to root window
Conky: failed to set up double buffer
Conky: drawing to single buffer


Así que después de varios intentos he decidido pasar un ratito en google con su consecuente gratificación :D
Después de ver un gritón* de enlaces y casi 100 gritones de posts he dado con la solución en: http://ubuntuforums.org/showthread.php?t=205865&highlight=conky :)

En resumen, hay que...:

- Instalar wmctrl (una herramienta en línea de comandos para interactuar con los gestores de ventanas compatibles con la especificación EWMH/NetWM)

# apt-get install wmctrl

- Editar el /etc/X11/xorg.conf y añadir en la sección "Modules":
"Load "dbe"

- Editar el .conkyrc y modificar/añadir las siguientes líneas:
own_window yes
own_window_type override
own_window_transparent yes

Después de reiniciar todo el sistema al lanzar conky funciona a la perfección :D

*Gritón: gag de Futurama

1 comentario:

  1. te dejo el mio ya no sé ni que hacerle, aquí caí y ando leyendo tu blog

    ckground yes
    cpu_avg_samples 2
    net_avg_samples 2
    out_to_console yes
    use_xft yesf
    xftfont matrix :size=6
    own_window yes
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    xftalpha 0.8
    update_interval 1.0
    double_buffer yes
    minimum_size 10 10
    maximum_width 320
    draw_shades yes
    draw_outline yes
    draw_borders yes
    stippled_borders 2
    border_width 0
    alignment top_left
    use_spacer yes
    no_buffers yes
    uppercase no
    #default_color 32cd32

    ${color 00ff2d}${hr}$color
    TEXT
    ${color 32CD32}La tostadora de Neo: $kernel
    ${color 00ff9c}${hr}$color
    ${color ff000f}CPU $color ${cpu cpu1}% ${color 4f39e4}Uptime:$color $uptime ${color df10bd} Temp: $color ${acpitemp}c
    ${color ffcc00}${cpugraph cpu1 6b7d66 e45d39}
    ${color 5a59c9}Procs:$color $processes ${color 548d8d}Running:$color $running_processes
    ${color 5b68ce}Espacio libre:
    ${color e6aa22}Ram $mem/$memmax${color 001bff} $memperc% $membar
    ${color 52ea2d}swap $swap/$swapmax ${color fff800} $swapperc% ${swapbar}
    ${color 31ace7}${hr}$color
    ${color c8ca30}Raiz ${color e73138}${fs_used /}/${fs_size /}${alignr}${color cb8910}${fs_bar 5,120 /}
    ${color ba3e3b}${hr}$color
    ${color fff400}CPU Activos:
    ${color 121f7d}Name PID CPU% MEM%
    $color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    $color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    $color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    $color ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    $color ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
    ${color e4ff00}${hr}$color
    ${color #1fff00}RAM Activos:
    $color ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    $color ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    $color ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    $color ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
    $color ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
    ${color daff00}${hr}$color
    ${color ff0d00}Ethernet: eth0 - ${addr eth0}
    ${color 0300ff}Net Down: ${downspeed eth0} k/s${color 00c7ff} ${offset 62}Net Up:$color ${upspeed eth0} k/s
    ${color ff2c00}${downspeedgraph eth0 22,150 0018ff fff400} $alignr${color 0005ff}${upspeedgraph eth0 22,150 ff1300 1100ff}
    ${color ff00bb}Wifi: eth1 - ${addr eth1}
    ${color 1f00ff}Net Down: ${downspeed eth1} k/s${color 32cd32} ${offset 62}Net Up:$color ${upspeed eth1} k/s
    ${color 61ff00}${downspeedgraph eth1 22,150 ffff00 00ffff} $alignr${color ff0012}${upspeedgraph eth1 22,150 ffff00 ff00b7}
    ${color ff0009}${hr}$color
    ${color ebff29}
    ${color #ffff00}ESSID: $color${wireless_essid eth1} ${color #ff0033}Address: $color${addr eth1} ${exec netstat -nr | grep [.] | cut -f 10 -d ' '}${color 00ffaa} Gateway$color
    ${color #00ff1b}Wireless AP: $color${wireless_ap eth1}
    ${color #0400ff}Mode:$color ${wireless_mode eth1} ${color #0077ff}Bitrate:$color ${wireless_bitrate eth1}
    ${color #a52100}Wireless link: $color${wireless_link_qual_perc eth1}${alignr}${color ee66ff}${wireless_link_bar 5,120 eth1}
    ${color ff2209}${hr}$color
    ${color 32cd32}Port(s)${alignr}#Connexiones
    $color ALL: ${alignr}$color ${tcp_portmon 1 65535 count}
    ${color aa0479}Port(s)${alignr}#INPUT
    ${color 2f87a9}Remote Address ${alignr} Local Service/Port$color
    ${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
    ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
    ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
    ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
    ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
    ${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 lservice 5}
    ${color 7f7133}${hr}$color
    ${color eb7075}Port(s)${alignr}#OUTPUT
    ${color b2e427}Remote Address ${alignr} Local Service/Port$color
    ${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 rservice 0}
    ${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 rservice 1}
    ${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 rservice 2}
    ${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 rservice 3}
    ${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 rservice 4}
    ${tcp_portmon 1 65535 rhost 5} ${alignr} ${tcp_portmon 1 65535 rservice 5}
    ${color 00fd83}${hr}$color
    ${color 2736e4}/var/log/messages$color
    ${execi 1 dmesg | tail -n1 /var/log/messages | fold -w50}
    ${color e42e27}${hr}$color
    ${color 423840}battery: ${battery}
    ${color 1f1aed}batetery time: ${battery_time}
    ${color 1ab6ed}battery percent: %${battery_percent}






    .

    ResponderEliminar