[openbox] [maybe OT] raise window from CLI

Roman Bogorodskiy bogorodskiy at gmail.com
Sun Oct 2 12:13:30 EDT 2011


  Jorge Almeida wrote:

> My IDE for working with LaTeX is simply an xterm + gvim + a simple Makefile :)
> "make edit" will call gvim to edit a tex file, "make" will produce a
> pdf, "make view" will call evince to show the pdf file, etc. Now, when
> evince is already running the appropriate file (i.e., assuming that
> "make view" was already called), when "make" is run again an updated
> pdf file is produced (if necessary) and evince loads the updated pdf.
> Unfortunately, the evince window is behind other windows, and I have
> to raise it manually. It would be great to do it automatically, by
> adding some command to the Makefile at the "make" target. Is there any
> way to do it at all? I have no idea how to start looking for something
> like this...

You can do it using wmctrl:

http://tomas.styblo.name/wmctrl/

Roman Bogorodskiy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://icculus.org/pipermail/openbox/attachments/20111002/478eb31d/attachment.pgp>


More information about the openbox mailing list