[openbox] followMouse/underMouse focus

Andrew Gallant jamslam at gmail.com
Fri Mar 23 00:39:00 EDT 2012


If you don't mind using my xpybutil [1] library, this is a pretty
trivial task. I've posted something on pastebin that will do the trick
[2].

In order to use xpybutil, you'll need xpyb-git [3]. (Which in turn
depends on python2, gcc, git, xcb-xproto and libxcb---but those should
be available in any decent package repository.) If xpyb-git isn't
available in your Linux distribution's package repos, see my
PKGBUILD[4] for Archlinux for build details on xpyb-git, but it should
be as simple as:

git clone git://anongit.freedesktop.org/xcb/xpyb
cd xpyb
PYTHON=python2 ./autogen.sh --prefix=/usr
make
make install

And installing xpybutil is like any other Python program:

git clone git://github.com/BurntSushi/xpybutil.git
cd xpybutil
python2 setup.py install

There is also a lot of documentation for xpybutil. [5] You can script
any EWMH window manager to your heart's content :-)

[1] - https://github.com/BurntSushi/xpybutil
[2] - http://pastebin.com/pwhgTuG3
[3] - http://cgit.freedesktop.org/xcb/xpyb/
[4] - https://aur.archlinux.org/packages/xo/xorg-xpyb-git/PKGBUILD
[5] - http://burntsushi.net/X11/xpybutil/docs/

- Andrew



On Thu, Mar 22, 2012 at 11:20 PM, Anthony Thyssen
<A.Thyssen at griffith.edu.au> wrote:
> On Thu, 22 Mar 2012 21:10:53 -0400
> Jim Rees <rees at umich.edu> wrote:
> | Anthony Thyssen wrote:
> |
> |   On Thu, 22 Mar 2012 17:33:52 -0400
> |   Jim Rees <rees at umich.edu> wrote:
> |   | What I would really find useful is some way to make the bottom window pop up
> |   | to the top.
> |
> |   Add a entry for any click on a border or title to raise the window.
> |   That is what I do.
> |
> |   I also have Alt-click in the window to do similar.
> |
> | That's not exactly what I want.  I want a hotkey that, when I press it,
> | raises the bottom window, regardless of where the mouse happens to be or who
> | has the focus, even if that window is completely obscured.
>
> That would be a general cycle windows.
> Hmmm...
>  Unfortunately openbox does not seem to have a general window cycling.
> that is independent of current location or focus. :-(
> EG: raise deepest to top
> and the reverse: cycle topmost window to bottom.
>
> I do remember TWM and CTWM having this action!
>
> I suppose an external script or program could be made to do this
> (anyone like a program challenge), but forking an external program
> for what should be a window manager function is a little slow.
>
>
>  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
>  --------------------------------------------------------------------------
>    Diplomacy(n) :- The art of saying 'Nice doggie!'
>                                     ... till you can find a rock.
>  --------------------------------------------------------------------------
>   Anthony's Castle     http://www.ict.griffith.edu.au/anthony/
> _______________________________________________
> openbox mailing list
> openbox at icculus.org
> http://icculus.org/mailman/listinfo/openbox


More information about the openbox mailing list