You are not logged in.

#1 2008-06-02 02:08:30

czar
Member
Registered: 2008-03-08
Posts: 115

[solved]Openbox margins and Conky

I have a 1 line conky that i want to remain at the top of my screen at all times. I set up a margin in openbox to leave enough pixels at the top to comfortably fit the conky. The problem is that when i first boot to my desktop conky is placed below the margin. If i restart X however conky is right where i want it in the margin. Does anyone know how to put conky in the right place the first time?

.conkyrc is setup for top_left placement and theres only a few pixels on the y axis from the top.
I call conky from .xinitrc  before openbox

I can't think of any other relevant info but let me know!

Last edited by czar (2008-06-04 01:18:09)

Offline

#2 2008-06-02 04:20:13

Redroar
Member
Registered: 2008-03-17
Posts: 200

Re: [solved]Openbox margins and Conky

Replace conky & in .xinitrc with (sleep 3 && conky) &. I think this happens if Conky starts before Openbox, but I am not completely sure.


Stop looking at my signature. It betrays your nature.

Offline

#3 2008-06-02 15:28:57

czar
Member
Registered: 2008-03-08
Posts: 115

Re: [solved]Openbox margins and Conky

I think that if i do that it will still execute conky before openbox (since sleeping would stop the entire .xinitrc not just conky i think, i'll check) but i'll use your idea and try to execute conky from openbox autostart instead. Thanks for the input smile

Offline

#4 2008-06-02 15:33:50

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved]Openbox margins and Conky

The function created with the brackets, combined with the ampersand, puts the whole sequence in the background, so .xinitrc will not stop being parsed for that whole time.

Don't worry, the guy knows what he's talking about...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2008-06-02 16:38:57

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Openbox margins and Conky

Do you have this line in your .conkyrc

own_window_type desktop

?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#6 2008-06-02 17:53:24

czar
Member
Registered: 2008-03-08
Posts: 115

Re: [solved]Openbox margins and Conky

B wrote:

The function created with the brackets, combined with the ampersand, puts the whole sequence in the background, so .xinitrc will not stop being parsed for that whole time.

Don't worry, the guy knows what he's talking about...

thanks for clearing that up. I read the parenthesis as English not as code. sorry for doubting you redroar!


And moljac, i'll check that out when i get home, thanks.

Last edited by czar (2008-06-02 17:54:29)

Offline

#7 2008-06-02 20:48:11

Redroar
Member
Registered: 2008-03-17
Posts: 200

Re: [solved]Openbox margins and Conky

I should have put it in a

(sleep 3 && conky) &

so it could've been read more easily. I see how the parentheses were seen as a way of separating it from the sentence, and not as the code itself.


Stop looking at my signature. It betrays your nature.

Offline

#8 2008-06-02 22:55:43

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [solved]Openbox margins and Conky

If you don't set conky's window type to be of "desktop", openbox will treat it as any other application, hence forbidding it to cross your margins.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#9 2008-06-03 01:38:08

Redroar
Member
Registered: 2008-03-17
Posts: 200

Re: [solved]Openbox margins and Conky

That's assuming it has it's own window, of course. I ran mine without a window for a while, but it seems better behaved with the desktop type window.

I'm just thinking that since it works when he restarts X, it's just some weird thing with the loading order.


Stop looking at my signature. It betrays your nature.

Offline

#10 2008-06-04 01:17:47

czar
Member
Registered: 2008-03-08
Posts: 115

Re: [solved]Openbox margins and Conky

It was the own_window_type desktop. Thanks for helpin me out guys. It is peculiar that its fixed by restarting X tho.

Offline

#11 2008-06-04 01:38:14

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [solved]Openbox margins and Conky

Great thread.
A lot of brainpower condensed into a short space...I like that!

Offline

#12 2009-05-29 07:49:20

hookdump
Member
Registered: 2009-05-29
Posts: 1

Re: [solved]Openbox margins and Conky

moljac024 wrote:

Do you have this line in your .conkyrc

own_window_type desktop

?

EXCELLENT!!! Thank you so much, I had a similar problem, and that worked perfectly smile


THANKS! smile

Offline

Board footer

Powered by FluxBB