You are not logged in.

#1 2010-01-17 10:25:57

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Openbox and urxvt(solved)

I have two questions.First,how can i start urxvt when openbox starts.If i put urxvt in autostart.sh,it starts at up left corner,and i can't type anything,i must kill it.When i start urxvt normaly, it starts at down left corner because of rc.xml setings:

  <application name="urxvt">
    <decor>no</decor>
    <focus>yes</focus>
    <position>
      <x>20</x>
      <y>-20</y>
    </position>
    <layer>below</layer>
    <desktop>all</desktop>
    <skip_taskbar>yes</skip_taskbar>
  </application>

Second,is there any way to give the urxvt focus with keyboard in openbox,maybe using xbinkeys?

Last edited by na12 (2010-01-17 21:14:56)

Offline

#2 2010-01-17 10:43:29

weakhead
Member
From: Poland
Registered: 2008-08-21
Posts: 341
Website

Re: Openbox and urxvt(solved)

1) Try to delay start of URxvt.
example:

sleep 5 && urxvt &

Offline

#3 2010-01-17 10:46:54

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: Openbox and urxvt(solved)

You might want to use

(sleep 5 && urxvt) &

to not block your whole startup script.

Offline

#4 2010-01-17 11:54:34

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: Openbox and urxvt(solved)

Yeah,now works,but it is still at up left corner,not down left corner. How can i set to open it at down left corner? And for second question,is there solution to not use mouse for focus?

Last edited by na12 (2010-01-17 12:32:04)

Offline

#5 2010-01-17 12:11:26

Maxa
Member
Registered: 2008-11-30
Posts: 31

Re: Openbox and urxvt(solved)

You could use xdotool tool to focus. If you start urxvt with a certain name, you can then search for the windowid and focus that specific window. I'm not sure how this all would work on a startup script, however

urxvt -name terminal
xdotool windowactivate $(xdotool search --name terminal)

Offline

#6 2010-01-17 12:31:27

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: Openbox and urxvt(solved)

Thanks Maxa,i will try it.

Offline

#7 2010-01-17 17:44:59

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 601

Re: Openbox and urxvt(solved)

For the lower left corner, you can use the --geometry option of urxvt, so it would read something to the effect of

(blah whatever && urxvt --geometry +20-20) &

Last edited by Knute (2010-01-17 17:46:15)


Knute

Offline

#8 2010-01-17 18:27:43

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: Openbox and urxvt(solved)

Knute wrote:

For the lower left corner, you can use the --geometry option of urxvt, so it would read something to the effect of

(blah whatever && urxvt --geometry +20-20) &

Isn't it geometry of window size,not geometry, where placed window?

Offline

#9 2010-01-17 19:05:06

ZaQ
Member
Registered: 2009-12-12
Posts: 106

Re: Openbox and urxvt(solved)

No, the size would be 20x20

Offline

#10 2010-01-17 21:24:42

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: Openbox and urxvt(solved)

I solved this making start.sh script with

sleep 15
urxvt &

,and puting it in autostart.sh. This way only works.

Last edited by na12 (2010-01-17 21:28:09)

Offline

#11 2010-01-18 00:13:42

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 601

Re: Openbox and urxvt(solved)

na12 wrote:
Knute wrote:

For the lower left corner, you can use the --geometry option of urxvt, so it would read something to the effect of

(blah whatever && urxvt -geometry +20-20) &

Isn't it geometry of window size,not geometry, where placed window?

The geometry of a window is BOTH size and position in the following format widthxheight+x+y.

Now plus values for x and y would start in the upper left, negative values would make it lower right if you do both, etc....

Now, if you look at my example above:

urxvt -geometry +20-20

You have urxvt being placed at positive x value and negative y value WITHOUT height and width.

Because it has the plus and minus attributes, the geometry value is positional only!  If you forget the plus or the minus, then yes, it would be taken as size or something.   If you don't believe me, then try it, ZaQ.


Knute

Offline

#12 2010-01-18 05:56:14

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,272

Re: Openbox and urxvt(solved)

@Knute:

Nope, "urxvt -geometry +20-20" works perfectly here featuring the default size. tongue


To know or not to know ...
... the questions remain forever.

Offline

#13 2010-01-18 09:45:40

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 749

Re: Openbox and urxvt(solved)

Knute wrote:
na12 wrote:
Knute wrote:

For the lower left corner, you can use the --geometry option of urxvt, so it would read something to the effect of

(blah whatever && urxvt -geometry +20-20) &

Isn't it geometry of window size,not geometry, where placed window?

The geometry of a window is BOTH size and position in the following format widthxheight+x+y.

Now plus values for x and y would start in the upper left, negative values would make it lower right if you do both, etc....

Now, if you look at my example above:

urxvt -geometry +20-20

You have urxvt being placed at positive x value and negative y value WITHOUT height and width.

Because it has the plus and minus attributes, the geometry value is positional only!  If you forget the plus or the minus, then yes, it would be taken as size or something.   If you don't believe me, then try it, ZaQ.

Yes,it works,but if i put it in autostart.sh just like that,after starting, urxvt  just stop working,and i must kill it. Maybe it happens because i have many things in autostart.sh.

Last edited by na12 (2010-01-18 09:46:12)

Offline

Board footer

Powered by FluxBB