Re: [dwm] Keyboard control in floating mode

From: pancake <pancake_AT_youterm.com>
Date: Fri, 24 Aug 2007 20:44:03 +0200

There's a patch called moveresize that allows you to do this: here's if you
can't find't anywhere. but i think it's in the kiwi.

void
moveresize(const char *arg) {
        int x, y, w, h, nx, ny, nw, nh;
        char xabs, yabs, wabs, habs;

        if(lt->arrange != floating)
        if(!sel || !sel->isfloating || sel->isfixed || !arg)
                return;
        if(sscanf(arg, "%d%c %d%c %d%c %d%c %d%c", &x, &xabs, &y, &yabs, &w, &wabs, &h, &habs) != 8)
                return;
        nx = xabs == 'x' ? sel->x + x : x;
        ny = yabs == 'y' ? sel->y + y : y;
        nw = wabs == 'w' ? sel->w + w : w;
        nh = habs == 'h' ? sel->h + h : h;
        resize(sel, nx, ny, nw, nh, True);
}

--pancake

On Fri, 24 Aug 2007 20:29:17 +0200
"Philipp Köhler" <koehler.philipp_AT_gmail.com> wrote:

> i would love that!
>
> On 8/24/07, Alessandro Dotti Contra <alessandro_AT_dotticontra.org> wrote:
> > Hi everybody,
> >
> > I think it would be nice to have keyboard shortcuts to manage windows in
> > floating mode.
> >
> > What I mean is the possibility to use keys to move and resize windows,
> > as I have to use floating mode (with taglayouts patch) for some
> > applications and I hate to often switch from keyboard to mouse and back
> > again.
> >
> > Do this make sense?
> >
> > ciao
> > alex
> >
> > --
> > Alessandro Dotti Contra | email: alessandro_AT_hyboria.org
> > Bologna, Italy | PGP Key ID: 0x9C84C3DA
> > http://www.hyboria.org/ | jabber: adc@jabber.org
> > | gtalk: adotti_AT_gmail.com
Received on Fri Aug 24 2007 - 20:43:27 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:51:08 UTC