You are not logged in.
Is there a way to start a new urxvt window minimized? I found nothing of relevance googling nor in the man page.
Offline
Use dwm and monocle layout ;P
Have you tried setting '-geometry' so that it's fullscreen?
Offline
@karol - I want to spawn a new urxvt window, but I want it to be minimized or at least make it open in the background, i.e. behind any other window that is open.
Offline
It seems to me that the only option is to use community/devilspie.
Offline
Oh dear, I somehow misread 'minimized' as 'maximized' ...
Why not use a new tab instead?
Offline
@karol - A new tab won't work for my application which is called by a script running a new command in a new window by design. I would like just it to run minimized.
@k3 - I will look at devilspie, thanks for the suggestion.
Last edited by graysky (2013-11-16 12:54:32)
Offline
Do you mind if it flashes:
win=$(xdotool getactivewindow)
urxvt &
sleep 0.1
xdotool windowactivate $winor this might work:
xdotool exec --sync urxvt
xdotool windowminimizeOffline
@wirr - My script is calling makepkg via a parallel call (so 9 calls in parallel each running a their own terminal). I don't think I can use your solutions easily. The best option is a switch to open in the background on invocation, but I don't think I have that option ![]()
Offline
With the first snippet you could start all those 9 urxvts and switch back to your first urxvt.
If you change the class of the 9 urxvts you might be able to setup rules in your wm.
Thats it with the silly ideas ![]()
Offline
Do you mind if it flashes:
win=$(xdotool getactivewindow) urxvt & sleep 0.1 xdotool windowactivate $winor this might work:
xdotool exec --sync urxvt xdotool windowminimize
urxvt sets the window id in $WINDOWID so something like this should work:
urxvt -hold -e sh -c 'xdotool windowminimize $WINDOWID && foobar'Offline
A geometry string could place the window offscreen - which is effectively the same as minimized (depending on how any taskbar/panel you use works).
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
@jjacky - Nice idea, but when it's executed in my parallel statement, the ORIGINAL xterm (i.e. the one I used to run the script) gets minimized and all spawned urxvt's are normal ![]()
@Trilby - This could work but may be interrupted by my pager as placing them into another virtual window... need to experiment.
Offline
The line with $WINDOWID must be part of the subscript you are launching, not the master script. Maybe also try to unset $WINDOWID before running the scripts.
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |
Offline