On Thu, Dec 11, 2008 at 01:59:17PM -0500, Alex Kilgore wrote:
See the grow and nudge commands in wmii(1). I use the following (in rc syntax) to enter a sort-of move/resize mode on M-C-g:

I was wondering if this mode using M-C-g be easily implemented in wmiirc, how would that be done?

Something like this:
        Key $MODYEY-Control-g
                (
                        . wmii.sh
                        for i in "'' grow" "Control- grow -1" "Shift- nudge"; do
                                eval "set -- $i"; mod=$1; cmd=$2; shift 2
                                cat 's/^                /' <<!
                                        Key Escape
                                                exit
                                        Key $mod-$LEFT
                                                wmiir xwrite /tag/sel/ctl $cmd 
sel sel left  $*
                                        Key $mod-$RIGHT
                                                wmiir xwrite /tag/sel/ctl $cmd 
sel sel right $*
                                        Key $mod-$UP
                                                wmiir xwrite /tag/sel/ctl $cmd 
sel sel up    $*
                                        Key $mod-$DOWN
                                                wmiir xwrite /tag/sel/ctl $cmd 
sel sel down  $*
!
                        done | wi_events
                        wi_eventloop
                ) &

As the above is, of course, untested, I'd be stunned if it worked without modification.

--
Kris Maglione

It's an incredible con job when you think of it, to believe something
now in exchange for life after death.  Even corporations with all
their reward systems don't try to make it posthumous.
        --Gloria Steinem


Reply via email to