bash scripting fluxbox windows

Darin Nelson <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Message-ID <[email protected]>
Hi:

I want to bind keys to more complex window actions than fluxbox's native 
scripting facility allows. For example, I want a single key to move a 
window rightward by one half of a screen, but wrap to the next workspace 
up if it is already at the extreme edge of the screen.

I managed to write a bash script that did this and a few similar things 
--external scripting is possible with the right binaries to help. 
xwininfo (part of the xorg.x11 distribution) and wmcntrl 
(http://sweb.cz/tripie/utils/wmctrl/) can be used to gather window 
information and then modify it, and fluxbox is reasonably gracious about 
accepting the modifications.

However, in my hands, getting some important information using these 
tools requires hideous acrobatics. For example, the only way I've found 
to figure out which window is frontmost is to use xtrapin to fake a 
keypress that fluxbox has bound to a MoveUp 1 command. Fluxbox knows 
what's frontmost, so it moves the correct window, then my script has to 
check again to see what moved.

Discovering some other useful information, like which windows are 
minimized, is currently beyond my grasp.

Does fluxbox export window information like this more directly? If so 
how do I get at it? Has anyone had better success with external 
scripting of fluxbox?

--Darin


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.