PDA

View Full Version : [ubuntu] Conky Border Problem



LesterPalooza
April 15th, 2009, 05:11 AM
How can I keep my Desktop Icons while making my conky border invisible? Here is a picture of my current Desktop.

http://i97.photobucket.com/albums/l238/lhester_12/Screenshot-1.png

And here is my code for conky:


alignment top_right
maximum_width 300
total_run_times 0
background yes
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
gap_x 15
gap_y 35
minimum_size 200 5
net_avg_samples 2
no_buffers yes
out_to_console no
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer yes
alignment top_right
double_buffer yes

TEXT
${font Zekton:size=20}${alignc}${color Gray}${time %B %d}
${font Zekton:size=30}${alignc}${color Gray}${time %H:%M:%S}${alignr}${font Zekton:size=8}
${color grey}$hr
${color grey}$hr
$alignc ${color grey}OS:${color green}Ubuntu 8.10 Intrepid Ibex
$alignc ${color grey}Kernel:${color 2499ff}$sysname $kernel
$alignc ${color grey}Architecture:${color 2499ff}$machine
$alignc ${color grey}User@Hostname:${color 2499ff}lester${color 2499ff}@${color 2499ff}$nodename
${color grey}$hr
${alignc}${color green}CPU Info:
${color grey}CPU:$alignr ${color white}${exec cat /proc/cpuinfo | grep 'model name' | sort -u | cut -c 18-59}
${color grey}Frequency (in MHz):$alignr ${color white}$freq
${color grey}Frequency (in GHz):$alignr ${color white}$freq_g
${color grey}CPU Usage:${alignr}${color white}${cpu cpu0}% ${cpubar cpu0 4,145}
${color grey}Core1 Usage:${alignr}${color white}${cpu cpu1}% ${cpubar cpu1 4,145}
${color grey}Core2 Usage:${alignr}${color white}${cpu cpu2}% ${cpubar cpu2 4,145}
${color grey}$hr
${alignc}${color green}Memory Info:
${color grey}RAM Usage:${alignr}${color white}$mem/$memmax ${membar 4,75}
${color grey}Swap Usage:${alignr}${color white}$swap/$swapmax ${swapbar 4,75}
${color grey}$hr
${alignc}${color green}Video Card Info:
${color grey}GPU Temp:$alignr${color white}+${exec nvidia-settings -q GPUCoreTemp | grep Attribute | cut -d ' ' -f 6 | cut -c 1-2} °C
${color grey}M/B Temperature: $alignr${color white}$acpitemp°C
${color grey}$hr
${alignc}${color green}File systems:
${color grey}${color white}${fs_free /}/${fs_size /} $alignr${fs_bar 4,145 /}
${color grey}$hr
${alignc}${color green}Networking:${color grey}
${alignc}IP:${color white}${addr ath0}
${color grey}Up: ${color white}${upspeed ath0}Kb/s${color grey}${alignr}Down: ${color white}${downspeed ath0}Kb/s${color grey}
${color grey}$hr
${color grey}Uptime:$alignr ${color white} $uptime
${color grey}Processes running/total:$alignr ${color white}$running_processes/$processes
${color white}Name ${alignr 30} PID ${alignr 10} CPU% $alignr MEM%
${color grey} ${top name 1} ${alignr 30} ${top pid 1} ${alignr 10} ${top cpu 1} $alignr ${top mem 1}
${color grey} ${top name 2} ${alignr 30} ${top pid 2} ${alignr 10} ${top cpu 2} $alignr ${top mem 2}
${color grey} ${top name 3} ${alignr 30} ${top pid 3} ${alignr 10} ${top cpu 3} $alignr ${top mem 3}
${color grey} ${top name 4} ${alignr 30} ${top pid 4} ${alignr 10} ${top cpu 4} $alignr ${top mem 4}
${color grey} ${top name 5} ${alignr 30} ${top pid 5} ${alignr 10} ${top cpu 5} $alignr ${top mem 5}

Problem:
When I change the own_window to no, I lose my Desktop Icons but conky also loses its border.

I want conky to "blend in" to my Desktop...

I've seen it in someone else's Desktop. Here's an example.

http://img379.imageshack.us/img379/2282/ubu5ys0.jpg

it's a really crappy desktop but notice the difference in the conky border?


Please advise. Thank you!

mtbsoft
April 15th, 2009, 07:34 AM
I think you might find it is not a conky border so much as a window shadow that you are seeing, you should try changing your display manager settings to not show a shadow on your windows.

I have a similar effect on my conky windows (in my case I want it) which is generated by the Window Decorations and/or Reflection plug-ins in compiz.

Random_Dude
April 4th, 2010, 05:32 PM
I'm sorry for digging up this thread, but I have the exact same problem.

Does anyone know how to solve this?

stinkeye
April 4th, 2010, 06:06 PM
If using compiz use

(any) & !(class=Conky)


CCSM > effects > window decoration > shadow windows



If your using metacity with Compositing Manager enabled try

own_window_type desktopin your conky config

Random_Dude
April 4th, 2010, 11:15 PM
Thanks for the reply stinkeye.



If your using metacity with Compositing Manager enabled try

own_window_type desktopin your conky config

I tried this and didn't work. The border didn't disappear and when I clicked my desktop the conky closed.

Here's the conky I'm using now (sorry if something is misplaced, I'm posting this on Windows 7):


background yes

use_xft yes

xftfont Trebuchet MS:size=10

xftalpha 0.9

update_interval 1.0

total_run_times 0

own_window yes

own_window_type normal

own_window_transparent yes

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

double_buffer yes

minimum_size 180 5

maximum_width 180

draw_shades no

draw_outline no

draw_borders no

draw_graph_borders no


# Stippled borders?

# stippled_borders 8

# border margins

# border_margin 2

# border width

# border_width 1


default_color white

default_shade_color red

default_outline_color green


# alignment top_left

alignment top_right

# alignment bottom_left

# alignment bottom_right

# alignment none


gap_x 5

gap_y 30

no_buffers yes

uppercase no

cpu_avg_samples 2

override_utf8_locale no


TEXT
System $hr

Name:$alignr$nodename

Arch:$alignr$machine

OS:$alignr$sysname

Kernel:$alignr$kernel

Uptime:$alignr$uptime


Processor $hr

CPU1: ${cpu cpu1}% ${color lightgray}${cpubar cpu1}$color

CPU2: ${cpu cpu2}% ${color lightgray}${cpubar cpu2}$color

Temperature:${color } ${acpitemp} C${alignr}Fan: $alignr${acpifan}


Memory $hr

RAM: $memperc% ${color lightgray}$membar$color
Usage:$alignr$mem/$memmax


Disk Space $hr

Root: ${fs_used_perc /}% ${color lightgray}${fs_bar /}$color

Usage:$alignr$fs_used/$fs_size

Home: ${fs_used_perc /home}% ${color lightgray}${fs_bar /home/}$color

Usage:$alignr${fs_used /home}/${fs_size /home}Any ideas what it might be?

Thanks for the help.

stinkeye
April 5th, 2010, 02:21 AM
Open gconf-editor and turn off metacity's compositing feature.

gconf-editor > /apps/metacity/general/compositing_manager

or



If you need metacity's compositing feature for docky etc
own_window_type override
with compositing ticked in gconf-editor

Random_Dude
April 5th, 2010, 12:42 PM
Open gconf-editor and turn off metacity's compositing feature.
If you need metacity's compositing feature for docky etc
own_window_type override
with compositing ticked in gconf-editor

This one worked!
I had some problems with the start-up but I got those covered too. Finally, I managed to have this thing working.

Thanks stinkeye. ;)

Cheers.

stinkeye
April 5th, 2010, 02:54 PM
No problem.
I have 7 conkys running on my desktop, so I've done a lot of messing with the configs and reading conky man pages.
Please hit the solved button in Thread Tools.

Random_Dude
April 5th, 2010, 03:31 PM
It wasn't me who opened the thread, in that case shouldn't it be LesterPalooza to do it?

stinkeye
April 5th, 2010, 04:12 PM
Oh sorry, didn't realize it was an old thread. #-o