LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-29-2010, 08:46 PM   #1
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Rep: Reputation: 54
Transparent conky no longer in Slackware 13.1 / KDE 4.4.3


In the past I've been using the work around with feh to grab a copy of the image used for the background in KDE, however with the upgrade to Slackware 13.1 / KDE 4.4.3 this no longer happens. Anyone have any suggestions?
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-29-2010, 09:42 PM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,597

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Conky (1.8.0) now has support for rgba (real transparency) not fake transparency (which is the feh method). The fake transparency has problems with KDE4 because of plasma desktop. To use rgba transparency add a line like this line to your config


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

Attached is a screenshot of my desktop, see how with rgba I get proper transparency with all desktops.
Attached Thumbnails
Click image for larger version

Name:	conky.jpg
Views:	184
Size:	144.4 KB
ID:	3701  

Last edited by Daedra; 05-29-2010 at 10:10 PM.
 
3 members found this post helpful.
Old 05-30-2010, 12:13 AM   #3
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Ahh, it works! With the old fake transparency it would be completely transparent, however with this new method you can sort of see a small degree of opacity of the conky "window". Is there any way to get rid of that?
 
Old 05-30-2010, 12:22 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,597

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
Not sure on that one, I don't seem to have that problem (just removed my border and checked it) can you attach your conkyrc file?
 
Old 05-30-2010, 12:51 AM   #5
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Sure thing!

Code:
alignment top_left
background no
border_inner_margin 8
border_width 2
color1 white
# light blue
color2 6892C6
color3 brown
color4 green
color5 pink
color6 yellow
color7 cyan
cpu_avg_samples 2
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
extra_newline no
# Gap between borders of screen and text
gap_x 10
gap_y 10
#maximum_width 410
#minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
override_utf8_locale yes
own_window yes
own_window_argb_visual yes
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
show_graph_range no
show_graph_scale no
stippled_borders 4
text_buffer_size 2048
update_interval 1.0
uppercase no
# adds spaces around certain objects to stop them from moving other things around
use_spacer right
use_xft yes
xftalpha 0.8
xftfont DejaVu Sans Mono:size=8


TEXT
${color4}SYSTEM ${hr 2}
${color5}$nodename - $sysname $kernel on $machine

${color4}CPU ${hr 2}
${color1}NAME              PID          MEM%  ${alignr}CPU%
${color7}${top name 1}  ${top pid 1}      ${top mem 1}  ${alignr}${top cpu 1}${color}
${top name 2}  ${top pid 2}      ${top mem 2}  ${alignr}${top cpu 2}
${top name 3}  ${top pid 3}      ${top mem 3}  ${alignr}${top cpu 3}
${top name 4}  ${top pid 4}      ${top mem 4}  ${alignr}${top cpu 4}
${top name 5}  ${top pid 5}      ${top mem 5}  ${alignr}${top cpu 5}
${top name 6}  ${top pid 6}      ${top mem 6}  ${alignr}${top cpu 6}
${top name 7}  ${top pid 7}      ${top mem 7}  ${alignr}${top cpu 7}
${top name 8}  ${top pid 8}      ${top mem 8}  ${alignr}${top cpu 8}

${color1}Uptime:${color} $uptime ${alignr}${color1}Frequency:${color} ${freq_g}GHz / ${freq}MHz
${color1}Governor: ${color}${execi 60 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}  ${alignc -40}${color1}CPU:${color} ${acpitemp}C${alignr}${color1}GPU: ${color}${execi 60 nvidia-settings -query GPUCoreTemp | grep Attribute | cut -c 46-48}C
${color1}Load:${color} ${loadavg}    ${color1}Processes:${color} $processes  ${alignr}${color1}Running:${color} $running_processes
${color1}CPU Core 1:${color} ${cpu cpu1}% ${alignr}${cpubar cpu1 4,250}
${color1}CPU Core 2:${color} ${cpu cpu2}% ${alignr}${cpubar cpu2 4,250}
${color1}CPU Core 3:${color} ${cpu cpu3}% ${alignr}${cpubar cpu3 4,250}
${color1}CPU Core 4:${color} ${cpu cpu4}% ${alignr}${cpubar cpu4 4,250}
${color1}CPU Core 5:${color} ${cpu cpu5}% ${alignr}${cpubar cpu5 4,250}
${color1}CPU Core 6:${color} ${cpu cpu6}% ${alignr}${cpubar cpu6 4,250}
${color1}CPU Core 7:${color} ${cpu cpu7}% ${alignr}${cpubar cpu7 4,250}
${color1}CPU Core 8:${color} ${cpu cpu8}% ${alignr}${cpubar cpu8 4,250}
${cpugraph 000000 ffffff}

${color4}MEMORY / DISK ${hr}
${color1}RAM:${color} $memperc%  $mem / $memmax ${alignr}${membar 6,164}
${color1}swap:${color} $swapperc%  $swap / $swapmax ${alignr}${swapbar 6,164}

${color1}root:${color} ${fs_free /}free ${alignr}${fs_bar 6,232 /}
${color1}usr: ${color} ${fs_free /usr}free ${alignr}${fs_bar 6,232 /usr}
${color1}var: ${color} ${fs_free /var}free ${alignr}${fs_bar 6,232 /var}
${color1}tmp: ${color} ${fs_free /tmp}free ${alignr}${fs_bar 6,232 /tmp}
${color1}0:   ${color} ${fs_free /mnt/spares/0}free ${alignr}${fs_bar 6,232 /mnt/spares/0}
${color1}3:   ${color} ${fs_free /mnt/spares/3}free ${alignr}${fs_bar 6,232 /mnt/spares/3}
${color1}4:   ${color} ${fs_free /mnt/spares/4}free ${alignr}${fs_bar 6,232 /mnt/spares/4}
${color1}5:   ${color} ${fs_free /mnt/spares/5}free ${alignr}${fs_bar 6,232 /mnt/spares/5}
${color1}1:   ${color} ${fs_free /mnt/spares/1}free ${alignr}${fs_bar 6,232 /mnt/spares/1}
${diskiograph_read 25,170} ${alignr}${diskiograph_write 25,170}
${color1}Read: ${color}${diskio_read}${alignc -64}${color1}Write: ${color}${diskio_write}

${color4}NETWORK ${hr 2}
${color6}(Internet: ${execi 300 wget www.whatismyip.com/automation/n09230945.asp -O - -q})${alignr}(wi-fi: ${addr eth1})
${color1}Down: ${color}${downspeed eth1}k/s${alignc -64}${color1}Up: ${color}${upspeed eth1}k/s
${downspeedgraph eth1 25,170 000000 ff0000} ${alignr}${upspeedgraph eth1 25,170 000000 00ff00}
${color6}(ethernet: ${addr eth0})
${color1}Down: ${color}${downspeed eth0}k/s${alignc -64}${color1}Up: ${color}${upspeed eth0}k/s
${downspeedgraph eth0 25,170 000000 ff0000} ${alignr}${upspeedgraph eth0 25,170 000000 00ff00}${color}
${hr}
${color7}Total Down: ${color}${totaldown eth1}${alignc -74}${color7}Total Up: ${color}${totalup eth1}
${color7}Inbound: ${color}${tcp_portmon 1 32767 count}${alignc -36}${color7}Outbound: ${color}${tcp_portmon 32768 61000 count}${alignr}${color7}Total: ${color}${tcp_portmon 1 65535 count}

${color4}MISC ${hr 2}
${color1}Power: ${color}${battery}
${color1}Battery remaining: ${color}${battery_time} ${battery_bar}
 
1 members found this post helpful.
Old 05-30-2010, 01:03 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,597

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
try adding the line

own_window_type desktop
 
1 members found this post helpful.
Old 05-30-2010, 02:53 AM   #7
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
That did it, thanks!!
 
Old 05-30-2010, 11:18 PM   #8
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Actually just stumbled upon another problem... if I click anywhere on the desktop, conky disappears! No way to get it back unless I modify the conky.conf file or restart conky. Any suggestions?
 
Old 05-31-2010, 12:20 AM   #9
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,597

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
yes I had this problem as well, don't ask me why this worked cause I couldn't figure it out but I changed line

own_window_type desktop

to

own_window_type normal

Then I ran it for a while then switched back to own_window_type desktop and it stopped disappearing. The reason why its disappearing is because plasma doesn't draw the wallpaper on the root window so conky is falling behind the plasma wallpaper, that is why it happens, but for some reason the above worked for me.
 
Old 06-09-2010, 09:32 AM   #10
PenguinWearsFedora
Member
 
Registered: Jul 2009
Distribution: Slackware-14
Posts: 52

Rep: Reputation: 1
According to man pages

"own_window_argb_visual
Boolean, use ARGB visual? ARGB can be used for real transparen-
cy, note that a composite manager is required for real trans-
parency."

So yes, you need to enable composite effects.
 
Old 06-09-2010, 11:31 AM   #11
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by PenguinWearsFedora View Post
So yes, you need to enable composite effects.
Where would I go for this?
 
Old 06-09-2010, 01:15 PM   #12
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Peoples Republic of Kalifornia
Distribution: Slackware64 Current
Posts: 1,038

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by dimm0k View Post
Where would I go for this?
I have created an xorg.conf for my laptop so I have enabled it with this:

Code:
Section "Extensions"

    Option         "Composite"	      "Enable"

EndSection
 
Old 06-09-2010, 03:08 PM   #13
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.2
Posts: 1,597

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
I forgot about this post, did you ever fix the disappearing problem?
 
Old 06-09-2010, 11:44 PM   #14
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by SqdnGuns View Post
I have created an xorg.conf for my laptop so I have enabled it with this:

Code:
Section "Extensions"

    Option         "Composite"	      "Enable"

EndSection
Thanks for that! Apparently I left that out when I moved to Slackware 13.1... Now that I've added that in however, nothing seems different in terms of getting conky to be fully transparent. If I have own_window_type set to normal, conky is transparent however there's a level of tint/opaque in the conky window itself so it's not completely transparent. If I have it set to desktop, it is completely transparent however clicking anywhere on the desktop "covers" conky afterward.
 
Old 06-09-2010, 11:45 PM   #15
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.2
Posts: 542

Original Poster
Rep: Reputation: 54
Quote:
Originally Posted by Daedra View Post
I forgot about this post, did you ever fix the disappearing problem?
Didn't really fix it... but I've set it back to "normal" as I would rather have it not disappear than be full transparent. Not sure what's going on...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
conky 1.7.2 and Slackware 13.0 dimm0k Slackware 6 09-14-2009 07:56 PM
Conky and KDE 4 Woodsman Slackware 5 09-12-2009 08:43 PM
conky under transparent gnome-terminal does not show synss Linux - Desktop 2 10-12-2007 11:46 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration