Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a conky setup that I've used on a number of desktops (here's the conkyrc). It works fine in Ubuntu Unity, XFCE, Gnome and Openbox, but not Lubuntu (LXDE). The problem is that I cannot get it to stay on the Lubuntu LXDE desktop reliably. Either the conky window disappears if I click the desktop or if I minimize all windows (show desktop).

I've tried all variations in the configuration file for "own_window", "own_window_colour", "own_window_transparent" and "own_window_type" and have Googled quite a bit to resolve this. If it edit the conkyrc file and set the own_window_type to "normal", conky disappears if I minimize all windows. If I set it to "desktop" it disappears if I click anywhere on the desktop. If I use "override" it doesn't display at all. And the other options don't work well for obvious reasons.

On another Ubuntu Unity install I had a similar problem, but got around it by using Compiz Config Settings Manager to ignore my conky window. On my netbook Lubuntu install I don't have compiz installed.

How can I get conky to stay on my desktop.

share|improve this question
1  
Conky doesn't seem to play well with Openbox. –  Uri Herrera Aug 29 '12 at 8:06
    
Did you try the "panel" mode?.. BTW I also have similar problems with conky under Unity; can you please tell me how you used Compiz Config Settings Manager to ignore conky window? –  Sadi Mar 7 '13 at 6:35
1  
Sadi: The following conky setting should normally work for Unity: own_window yes own_window_transparent yes own_window_type normal own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager If you have problems with compiz (and weird shadows), use Compiz Config settings manager to set the following: * Under "Window Decoration" area, set the "Shadow windows" field to any & !(name=Conky) Note that panel mode is intended to let conky behave like a panel. This means that normally windows won't cover it and it should only be docked to the side of your screen. This isn't what I wanted. –  aspersieman Mar 8 '13 at 8:25

14 Answers 14

up vote 15 down vote accepted

Seems like setting window type to desktop is not enough sometimes.

Try:

own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

Got it from here.

Works for me in XFCE. I'm guessing it'll be fine for lxde/openbox as well.

share|improve this answer
2  
How is this answer accepted? In LXDE, clicking the desktop makes conky disappear. –  Redsandro Jun 23 '13 at 15:29
    
I also have no idea why that is. The question (not its title though) explicitly states that the issue is present ONLY in LXDE and the author ask for help to resolve that particular issue. The reply marked as "Answer" does not answer the question. I landed here while looking for an answer to the exact same problem but with Debian (latest stable), running LXDE. –  rbaleksandar Oct 22 '13 at 19:38
    
this doesn't help. it keep disappearing –  nazar_art Dec 29 '13 at 10:03
    
For simple Ubuntu with Unity own_window_type override works just fine –  MInner Jun 19 '14 at 1:10
    
No, it doesn't. Not for me anyway. It stops the disappearing widgets but then there's something wrong with the screen refresh for the characters that are getting drawn. They get fuzzy after a while and then you can tell it's because there are characters overlaying characters. –  user447607 Apr 16 at 15:51

This works in Lubuntu 14.10

own_window yes
own_window_hints undecorated,below,skip_taskbar
background no
own_window_transparent yes
share|improve this answer

I've done tons of research on this myself and it seems there are very few workarounds and even fewer that work well:

  • You could set conky to a dock or panel window.
  • You can set it to a normal window and just avoid using the show desktop plugin/keybind.
  • I even tried using the -w argument for conky to get it to draw to the fake desktop/PCManFM window, but that will cause your desktop to redraw as often as conky updates = messy.
  • If you can live without desktop icons, you can set conky to a desktop window and then simply turn PCManFM off by typing pcmanfm --desktop-off at the terminal.
  • You could let feh or some other program manage the desktop

I didn't like any of the above options. So, like Redsandro, the workaround I settled on was to have conky as a normal window (skip_pager,skip_taskbar,below,undecorated of course) and write a simple bash script and make a .desktop file for it so I could include in my panel to take the place of the Show Desktop plugin. It uses wmctrl so you'd have to download it. Also it unfortunately doesn't minimize all windows, it only shades them. But for my needs, it suffices:

#!/bin/bash
var=($(wmctrl -l | grep -o "0x[[:alnum:]]\+"))
for v in ${var[@]}
do wmctrl -i -r $v -b toggle,shaded
done
exit 0
share|improve this answer

I've done tons of research on this myself and it seems there are very few workarounds and even fewer that work well.

  • You could set conky to a dock or panel window.
  • You can set it to a normal window and just avoid using the show desktop plugin/keybind. I even used the -w argument for conky to get it to draw to the fake desktop/PCManFM window, but that wil cause your desktop to redraw as often as conky updates = messy. If you don't mind have no icons, you can simply turn PCManFM off by typing pcmanfm --desktop-off at the terminal.

Like Redsandro, the way got around this was to write a simple bash script and make a .desktop file for it so I could include in my panel to take the place of the Show Desktop plugin. It uses wmctrl so you'd have to download it. Also it unfortunately doesn't minimize all windows, it only shades them. But for my needs, it suffices:

#!/bin/bash
var="($(wmctrl -l | grep -o "0x[[:alnum:]]\+"))"
for v in ${var[@]}
do wmctrl -i -r $v -b toggle,shaded
done
share|improve this answer

The problem with using conky with LXDE is that PCManFM handles the desktop in a way unlike any other desktop. LXDE is essentially Openbox with a desktop layered on by the file manager (pcmanfm) if you removed pcmanfm in favor of another file manager, you would no longer have LXDE, you'd essentially have Openbox with the LXDE panel. How is this relevant? Well, LXDE's desktop is handled more like a window by the window manager, meaning just like when you have several windows open, and you click on one of them, it brings it into focus. This is exactly what's happening with Conky. When you click on the desktop, it places conky beneith the desktop, which is as I explained, handled more like a window. In my case, this is the fix:

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

Now, if you use the panel plugin to minimize all windows, it will still minimize conky, but this fix keeps conky from disappearing under normal circumstances.

share|improve this answer

Linux with Mate/Gnome2 GUI Ubuntish ;)

use_xft yes
..............
.........
.....
..........
own_window_type dock

Will dock on top screen, disaffecting any desktop actions.

Put to position setting:

gap_x ...
gap_y ...

Depending from your resolution.

share|improve this answer

This config works, on Gnome and Cinnamon and is the way to do it.

own_window yes
own_window_transparent yes
own_window_type dock
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 100
gap_x 940
gap_y 20

The last 2 attributes absolutely position it on screen and need to be changed for your configuration. A working complete configuration file can be found here on Github.

Edit: From the comments: If own_window_type set to "dock" doesn't work well for you, try "override" and "normal" as well.

share|improve this answer
    
own_window_type dock isn't always optimal as the conky window will be treated like a dock. –  aspersieman Mar 8 '13 at 8:12
1  
@aspersieman I found nothing different with it so far. It is the only setting which prevented it going off when clicking the desktop or super+windows+D. –  Anirudh Ramanathan Mar 8 '13 at 8:40
    
Try own_window_type override and changing the setting in Compiz Config Settings Manager I described to Sadi above. –  aspersieman Mar 10 '13 at 14:32
    
dock to me makes it a permanent part of my screen, like panel, i.e full screen windows cant cover it –  Karthik T Apr 26 '14 at 6:20

For Lubuntu with LXDE:

own_window yes
own_window_class Conky
own_window_transparent yes
own_window_type desktop
double_buffer yes

If the conky window disappears when press button minimize all windows (show desktop) go in Settings->Default applications for LXsession->Running applications->Desktop and select "feh" instead "filemanager"

Work for me in Lubuntu 13.10.

share|improve this answer

What worked for me:

own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
share|improve this answer
    
could you explain the difference between yours and Gerhard's answer? –  Braiam Sep 5 '13 at 21:03

For Unity my problem was solved by using

own_window_type override
share|improve this answer

The accepted answer does not account for "Show Desktop".

You can use the hack I explained in this answer to show conky after Win+D for Show Desktop is pressed:

#!/usr/bin/env bash
zenity --info --text "Remapping Conky..." &
pid=$!
sleep 0.3
kill $pid
xdotool windowmap `xdotool search --classname 'conky'`
share|improve this answer

The above did not work for me. What did work was to set the "own_window_type" to "normal" in /etc/conky/conky.conf.

own_window_type normal

As per this thread: http://ubuntuforums.org/showthread.php?t=2039399

share|improve this answer
    
I also needed "own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager` on LXDE. –  Motiejus Jakštys Nov 14 '13 at 12:55
    
This causes the "minimize all windows (show desktop)" case as in the OP, even with the addition of @MotiejusJakštys 's line –  Karthik T Apr 26 '14 at 6:19

My solution to this problem is add these two lines in your bash script

conky -c /home/ajay/.conkycolors/conkyrc >/dev/null 2>&1 &
conky -c /home/ajay/.conkycolors/conkyrc >/dev/null 2>&1 &

share|improve this answer
    
The question includes 3 different problems: 1) conky disappearing when desktop is clicked in "desktop" mode, 2) same when all windows are minimized (using Show Desktop command) in "normal" and "conky" modes, 3) conky not displayed in "override" mode... Which problem does this solve? What does it do really? –  Sadi Mar 7 '13 at 6:25

You could try to add a script that executes on startup.

For example:

#!/bin/bash
conky ;

(don't forget to chmod +x it ;)

share|improve this answer
    
Thanks for your answer. Unfortunately though, I've already tried this and it doesn't change anything. I've even tried to make it sleep for a few seconds. Any other suggestions? –  aspersieman Aug 29 '12 at 8:21
    
sorry dude no other suggestion. i have solved mine this way but if i remember correctly i was using gnome. –  user981916 Aug 29 '12 at 9:18
    
No worries. Thanks for your help though. –  aspersieman Aug 29 '12 at 9:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.