You are not logged in.

#1 2011-01-06 18:36:25

Aventinus
Member
From: On A Personal Voyage
Registered: 2010-09-11
Posts: 147

Conky and KDE 4.5 transparency

Hi guys, I just made a big move to KDE from Gnome. Till then the conky code I was using worked just fine but in KDE 4.5 I can't seem to make it transparent. Below the code I use. Any ideas?

own_window yes
own_window_transparent yes
own_window_argb_visual yes
own_window_type normal
own_window_class conky-semi
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use Xft?
use_xft yes
xftfont Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 180 0
maximum_width 280

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
#default_outline_color white
own_window_colour white

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 10

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

TEXT
                                        $nodename
System ${hr 2}
                                     
Kernel:  ${alignr}${kernel}
Uptime: ${alignr}${uptime}
CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
CPU3: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
CPU4: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
${color white}${cpugraph cpu0 32,309 000000 7f8ed3}
RAM: $memperc% ${alignr}${membar 8,60}
SWAP: $swapperc% ${alignr}${swapbar 8,60}

HD ${hr 2}

${voffset 0}Root:
  ${voffset 0}${fs_free /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${voffset 0}Home:
  ${voffset 0}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${voffset 0}OptimusPrime:
  ${voffset 0}${fs_free /media/OptimusPrime}/${fs_size /media/OptimusPrime} ${alignr}${fs_bar 8,60 /home}
${voffset 0}Megatron:
  ${voffset 0}${fs_free /media/Megatron}/${fs_size /media/Megatron} ${alignr}${fs_bar 8,60 /home}

${color white}Top Processes ${hr 2}

${color white}Name                                                   PID   CPU% MEM%
  $color ${top name 1}${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
  $color ${top name 2}${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
  $color ${top name 3}${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
  $color ${top name 4}${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${color white}Mem Usage
  $color ${top_mem name 1} ${alignr}${top_mem pid 1} ${alignr}${top_mem cpu 1} ${alignr}${top_mem mem 1}
  $color ${top_mem name 2} ${alignr}${top_mem pid 2} ${alignr}${top_mem cpu 2} ${alignr}${top_mem mem 2}
  $color ${top_mem name 3} ${alignr}${top_mem pid 3} ${alignr}${top_mem cpu 3} ${alignr}${top_mem mem 3}
  $color ${top_mem name 4} ${alignr}${top_mem pid 4} ${alignr}${top_mem cpu 4} ${alignr}${top_mem mem 4}

${color white}Ports${hr 2}

#Connections
Inbound: ${tcp_portmon 1 32767 count}                Outbound: ${tcp_portmon 32768 61000 count}${alignr}ALL: ${tcp_portmon 1 65535 count}

${color white}Inbound Connection ${alignr} Local Service/Port$color
  ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
  ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
  ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${color white}Outbound Connection ${alignr} Remote Service/Port$color
  ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
  ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
  ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
  ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
  ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
 
${color white}Network ${hr 2}

                       ${color white}Download:${color white} ${downspeed eth0} k/s${color white}${offset 80}
                       ${color white}${downspeedgraph eth0 32,150 000000 7f8ed3}
                  Upload:${color white}      ${upspeed eth0} k/s
                       ${color white}${upspeedgraph eth0 32,150 000000 7f8ed3}
                            ${color white}Address: ${color white}${addr eth0}${alignr}
                            ${color white}TCP Connections: ${color white}${tcp_portmon 1 65535 count}

"Somewhere, something incredible is waiting to be known." - Carl Sagan

Offline

#2 2011-01-06 19:33:03

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Offline

Board footer

Powered by FluxBB