Help - Search - Members - Calendar
Full Version: Openbox: Handle Window Via Comand Line?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
daniel3000
Hello,

I'd need to write some scripts which should raise a program window from the background (or an iconified window) to the foreground and maximize it.

Is Openbox able to handle that? Or are there WM-independent helper programs for such purposes?
Or do I have to use another Window manager? Which one would be able to do that?

Thanks a lot!
daniel
InSearchOf
I can't picture what you are trying to accomplish... or maybe I'm thinkin a little to hard about it... :-)

Like a script that maxamizes a minimized window... and if that script going to be mapped to a key? So basicly it would be like a "reverse" show desktop?

Late
daniel3000
QUOTE(InSearchOf @ Oct 30 2006, 02:48 PM)
I can't picture what you are trying to accomplish... or maybe I'm thinkin a little to hard about it... :-)

Like a script that maxamizes a minimized window... and if that script going to be mapped to a key? So basicly it would be like a "reverse" show desktop?

Late
*


Yes, kind of:
The application keys for "Calendar", "Address" etc. are configured to open the PIM apps KO/PI, KA/PI etc.
However, if KO/PI is started and minimized, and if I then press the "Calendar" key again, another instance of KO/PI is started, which should not happen.
Instead the other window, which is probably minimized or in the background (otherwise the user would have seen it) should be raised to the foreground and get the focus.

I thought about a script structure like

CODE
ps | grep -v "grep" | grep kopi
if [ $? -ne 0 ]; then
  kopi
else
  "raise_window kopi"
fi


I would then assign the applicatoin key to that script rather than to the kopi binary.

QTopia has this feature built-in, and especially for PDA-style use of the Zaurus it is a very important feature. Nobody wants to wait some minutes to load a second instance of KO/PI when he presses the "calendar" key to have a quick look at the calendar.

daniel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.