You are not logged in.

#1 2010-05-03 20:48:50

beretta
Member
Registered: 2008-04-21
Posts: 133

[solved] conky sits above windows on first load

I recently switched my desktop environment to openbox, and have conky running on the desktop.  When I first boot the computer and log in for the first time, the conky window displays on top of all other windows, as seen in the screenshot below.  The conky configuration is set to have it sit underneath them.

If I kill conky and restart it, it sits underneath open windows as configured.  The same happens if I log out and re-log in.  I've tried delaying the time before autoloading conky into openbox, but it has no effect.  Any ideas?

conkybug.th.png

Uploaded with ImageShack.us

Last edited by beretta (2010-05-04 16:45:48)

Offline

#2 2010-05-03 20:55:14

Coacher
Guest

Re: [solved] conky sits above windows on first load

The easiest for me is to force conky to be on the bottom level of workplace in openbox.
Add something like this in your rc.xml

<application name="conky">
<layer>below</layer>
</application>

Last edited by Coacher (2010-05-03 20:55:39)

#3 2010-05-03 20:59:08

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: [solved] conky sits above windows on first load

Yeah, I already tried that:

rc.xml:

722     <application name="Conky">
723       <decor>no</decor>
724       <desktop>all</desktop>
725       <layer>below</layer>
726       <skip_taskbar>yes</skip_taskbar>
727     </application>

Offline

#4 2010-05-04 05:46:14

Coacher
Guest

Re: [solved] conky sits above windows on first load

Show me how do you run conky at startup? Should be smth like this in autostart.sh

conky &

Last edited by Coacher (2010-05-04 05:46:57)

#5 2010-05-04 11:47:18

ssjlegendx
Member
Registered: 2008-01-01
Posts: 94
Website

Re: [solved] conky sits above windows on first load

beretta wrote:

Yeah, I already tried that:

rc.xml:

722     <application name="Conky">
723       <decor>no</decor>
724       <desktop>all</desktop>
725       <layer>below</layer>
726       <skip_taskbar>yes</skip_taskbar>
727     </application>

I'm not sure if it matters, but you could try using a lowercase c:

<application name="conky">

#!/vim/rocks

Offline

#6 2010-05-04 13:21:05

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: [solved] conky sits above windows on first load

Here's how it's called in autostart:

46 nitrogen --restore &
47 xcompmgr -c -t-5 -l-5 -r4.2 -o.55 -f &
48 dispwin /home/david/.config/color/Spyder2express.icm &
49 cairo-dock -o &
50 tint2 &
51 conky &

At one time I had put in a sleep command to see if that helped; it didn't.  I also noticed the capital C, but changing that didn't have any effect.  It's kind of strange, and like I said it only happens the first time I log in after booting.  Logging out and back in fixes it, killing the process and restarting it fixes it.  Maybe I just do a less-clean fix and start it, kill it, and restart it in autostart?  Something tells me there has to be something else causing this.

Offline

#7 2010-05-04 13:41:08

ssjlegendx
Member
Registered: 2008-01-01
Posts: 94
Website

Re: [solved] conky sits above windows on first load

You can try running obxprop on your Conky window to ensure that the "name" attribute in your rc.xml is correct.

On my system, I see the following (excerpt):

_OB_APP_CLASS(UTF8_STRING) = "Conky"
_OB_APP_NAME(UTF8_STRING) = "Conky"

In other words, you can try name="Conky" or class="Conky" (or both). (I was incorrect earlier about the case of the c, at least on my system.)


Edit:

Perhaps try running obxprop both on the first-run Conky instance and then on a later instance to see if something changes. It shouldn't (meaning that this isn't the problem), but it's something to check.

Last edited by ssjlegendx (2010-05-04 13:44:24)


#!/vim/rocks

Offline

#8 2010-05-04 13:57:04

xamaco
Member
From: Corsica, France
Registered: 2010-04-05
Posts: 87

Re: [solved] conky sits above windows on first load

Did you put the sleep in the autostart or a shell script called from autostart ?
On my openbox, it works fine and I have a shell script with something like :
  sleep 5
  conky

Offline

#9 2010-05-04 14:15:51

Coacher
Guest

Re: [solved] conky sits above windows on first load

xamaco wrote:

Did you put the sleep in the autostart or a shell script called from autostart ?
On my openbox, it works fine and I have a shell script with something like :
  sleep 5
  conky

using wrapper like xamaco said should help

#10 2010-05-04 16:45:34

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: [solved] conky sits above windows on first load

The script fixed it-- I wonder why the sleep needs to be in a wrapper rather than in the autostart script?  Thanks-- that problem can stop bugging me now.  cool

Offline

#11 2010-05-04 16:59:50

kazuo
Member
From: São Paulo/Brazil
Registered: 2008-03-18
Posts: 413
Website

Re: [solved] conky sits above windows on first load

Because the sleep stop all the autostart script, so it have no effect? I think...
I use

(sleep 4 && conky -c /home/kazuo/.conkyrc) &

Offline

#12 2010-05-04 18:27:30

xamaco
Member
From: Corsica, France
Registered: 2010-04-05
Posts: 87

Re: [solved] conky sits above windows on first load

kazuo wrote:

Because the sleep stop all the autostart script, so it have no effect? I think...
I use

(sleep 4 && conky -c /home/kazuo/.conkyrc) &

Yes, and your solution is much more elegant... cool

Offline

Board footer

Powered by FluxBB