On Mon, Jun 12, 2000 at 11:22:19AM -0400, Ben Tracy wrote:
> Fellow blackboxers:
>
> Is there a way to raise or deiconify a window from a script? I've
> set up my mail checker to put up an xdialog if the mail program is
> already running, so I don't get several of them running at the same
> time, but I thought it would be great if it would just bring it to
> the front in that case... The question is, can it be done?
>
A C program could do it fairly easily. I say C because to do this you need to
read X atoms from the server -- which I believe is not functional in python /
perl / shell.
Basically you read blackbox's window list atoms looking for the window you want
-- some fuzzy logic here because all you get is the window title. Then you
send an X atom to blackbox telling it to raise it. This is how bbpager works.
A wm shell a la eesh or whatever sawfish uses may be a little more difficult
to create.