You are not logged in.
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
Offline
You might want to use
(sleep 5 && urxvt) &
to not block your whole startup script.
Offline
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
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
Offline
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
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
No, the size would be 20x20
Offline
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
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
@Knute:
Nope, "urxvt -geometry +20-20" works perfectly here featuring the default size.
To know or not to know ...
... the questions remain forever.
Offline
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