[wmii] wmii-2 style resizing 'modes'

From: Kris Maglione <jg_AT_suckless.org>
Date: Sat, 5 Apr 2008 18:01:55 -0400

I don't think that I like these. I'd rather be able to bind
something like M-g-k, but I can't at the moment, so here they
are:

fn Key-$mod-g {
        @{
                . wmii.rc grow
                fn Key-Escape { wi_cleankeys; exit }
                fn Key-$left { wmiir xwrite /tag/sel/ctl grow sel sel left }
                fn Key-$right { wmiir xwrite /tag/sel/ctl grow sel sel right }
                fn Key-$up { wmiir xwrite /tag/sel/ctl grow sel sel up }
                fn Key-$down { wmiir xwrite /tag/sel/ctl grow sel sel down }

                wi_eventloop
        }&
}
fn Key-$mod-s {
        @{
                . wmii.rc shrink
                fn Key-Escape { wi_cleankeys; exit }
                fn Key-$left { wmiir xwrite /tag/sel/ctl grow sel sel left -1 }
                fn Key-$right { wmiir xwrite /tag/sel/ctl grow sel sel right -1 }
                fn Key-$up { wmiir xwrite /tag/sel/ctl grow sel sel up -1 }
                fn Key-$down { wmiir xwrite /tag/sel/ctl grow sel sel down -1 }

                wi_eventloop
        }&
}

M-g to grow a window, M-s to shrink it, Esc to exit resizing
mode. It's all a bit counterintuitive, but you get the idea.

-- 
Kris Maglione
Definition of an elephant:
A mouse built to goverment specifications.
PGP: http://suckless.org/~jg/pubkey.pgp
SHA1 (pubkey.pgp) = 2d464f9dbb186bee6f4faa88e2f6c5802bcfd935

Received on Sun Apr 06 2008 - 00:02:28 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:39:57 UTC