[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbox
Subject:    [openbox] Iconic autostart
From:       A.Thyssen () griffith ! edu ! au (Anthony Thyssen)
Date:       2013-07-08 3:47:30
Message-ID: 20130708134730.260d95ff () chimera ! itc ! griffith ! edu ! au
[Download RAW message or body]

On Mon, 8 Jul 2013 05:06:06 +0200
meino.cramer at gmx.de wrote:
| Hi,
| 
| I want to start a gui based program via autostart.sh.
| 
| The program should start iconic (that is: program
| is started but not shown. It only appears in the task bar).
| 
| But when I start the program via menu.xml, it should be
| shown as a gui.
| 
| Where do I have to define what to acchieve this?
| 
| Thank you very much in advance for any help!
| Best regards,
| mcc
| 

I thought is was a sad day when developers took away the standard X
window options such as -geometry and -iconic.  Just because they think
they know what users want doesn't mean they do know what users want!


Start the application, then do a search for its window, and use
xwit  (or xdotool, or other script window controler) to iconize it!

I have a script "xwin_find" that looks for the window and returns
its ID.
   http://www.ict.griffith.edu.au/anthony/software/#xwin_find

I then use a script like this (for firefox) to launch and fix the
window as I want it.

if cmd_found firefox; then
  ( firefox -geometry 960x960+330+70 & ) &
  if id=`xwin_find 60 ".* Mozilla Firefox"`; then
    echo "Main firefox window found (id=$id)"
    # size, position, and iconify
    xwit -resize 960 960 -move 330 70 -iconify -id $id
  else
    echo "ERROR: Firefox Default window NOT FOUND!"
  fi
fi






  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 --------------------------------------------------------------------------
    A documented bug is not a bug; it is a feature.
                                     -- James P. MacLennan
 --------------------------------------------------------------------------
   Anthony's Castle     http://www.ict.griffith.edu.au/anthony/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic