X and Fluxbox :: Fluxbox Actions via Script



Hi ! I figured out, how to change the functions of Shortcuts (e.g. Alt + Tab = NextWindow) in Fluxbox, which can be done in the .fluxbox folder in /home/dsl/.
What I would like to do is not bind the action to a button, but to call it via Script (e.g. change between 2 Apps or Browser Windows every 10 Seconds without killing and restarting) can anyone tell me how to do this ? Thanx very much !

There's not much in the documentation about this other than linking to  http://sweb.cz/tripie/utils/wmctrl/ , which may not work with fluxbox stable.

I'm guessing if you find a way to spoof key presses it could be scripted. There's gotta be something like that here somewhere....particularly when similar things need to be done for accessibility.
I've always wanted to be able to talk to fluxbox from Bash, but never really did much research on it.  I'll look around for a while.  If you find an answer, please post it here!

Thanks Mikshaw ! Thats seems to be the right thing for me. I'm gonna post my experiences here... Btw, do you also know a solution for hiding the mouse pointer completely (not only in the root window - xsetroot thing) ? TIA
Here are my experiences with wmctrl:

It works more or less with fluxbox... I was able to move around windows within a workspace, resize them, close them, switch between workspaces and so on. all these functions are explained in the help - just run wmctrl --help.

wmctrl can be downloaded via apt-get, just install apt-get.dsl, change the state from stable to unstable, type "apt-get update", type "apt-get install wmctrl" and apt should do the rest for u (worked fine for me).
The second time I installed wmctrl, it was not possible to move windows anymore, I don't know why. I think it's not very improved with fluxbox. If you have any other tools to talk from bash to windowmanager let us know.
Have fun  :)


original here.