You are not logged in.

#1 2013-11-16 12:17:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,633
Website

Undocumented switched to start urxvt minimized?

Is there a way to start a new urxvt window minimized?  I found nothing of relevance googling nor in the man page.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2013-11-16 12:22:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Undocumented switched to start urxvt minimized?

Use dwm and monocle layout ;P

Have you tried setting '-geometry' so that it's fullscreen?

Offline

#3 2013-11-16 12:28:57

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,633
Website

Re: Undocumented switched to start urxvt minimized?

@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.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-11-16 12:35:40

K ³
Member
Registered: 2013-11-12
Posts: 15

Re: Undocumented switched to start urxvt minimized?

It seems to me that the only option is to use community/devilspie.

Offline

#5 2013-11-16 12:35:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Undocumented switched to start urxvt minimized?

Oh dear, I somehow misread 'minimized' as 'maximized' ...

Why not use a new tab instead?

Offline

#6 2013-11-16 12:53:53

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,633
Website

Re: Undocumented switched to start urxvt minimized?

@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)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#7 2013-11-16 13:04:06

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: Undocumented switched to start urxvt minimized?

Do you mind if it flashes:

win=$(xdotool getactivewindow)
urxvt &
sleep 0.1
xdotool windowactivate $win

or this might work:

xdotool exec --sync urxvt
xdotool windowminimize

Offline

#8 2013-11-16 13:06:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,633
Website

Re: Undocumented switched to start urxvt minimized?

@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 hmm


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#9 2013-11-16 13:27:16

wirr
Member
Registered: 2009-10-25
Posts: 70

Re: Undocumented switched to start urxvt minimized?

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 smile

Offline

#10 2013-11-16 13:53:41

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: Undocumented switched to start urxvt minimized?

wirr wrote:

Do you mind if it flashes:

win=$(xdotool getactivewindow)
urxvt &
sleep 0.1
xdotool windowactivate $win

or 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

#11 2013-11-16 14:31:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,165
Website

Re: Undocumented switched to start urxvt minimized?

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

#12 2013-11-16 15:18:04

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,633
Website

Re: Undocumented switched to start urxvt minimized?

@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 smile
@Trilby - This could work but may be interrupted by my pager as placing them into another virtual window... need to experiment.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#13 2013-11-16 15:37:11

progandy
Member
Registered: 2012-05-17
Posts: 5,221

Re: Undocumented switched to start urxvt minimized?

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 ' |

Offline

Board footer

Powered by FluxBB