Re: [wmii] bare mode (was: Re: new (consistent) keybindings in the hg repo)

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Tue, 11 Apr 2006 19:07:27 +0000

On 4/11/06, Georg Neis <gn_AT_oglaroon.de> wrote:

> Try this:
>
> --- /usr/local/etc/wmii-3/wmiirc 2006-04-11 20:22:13.678962320
> +0200 +++ .wmii-3/wmiirc 2006-04-11 20:38:48.957656960 +0200
> @@ -44,7 +44,16 @@
> proglist $OLD_PATH >/tmp/ns.$USER.$DISPLAY/progs &
>
> # SHORTCUTS
> +
> +setbarekeys() {
> wmiir write /def/keys <<EOF
> +$MODKEY-Escape
> +EOF
> +}
> +
> +setnormkeys() {
> +wmiir write /def/keys <<EOF
> +$MODKEY-b
> $MODKEY-h
> $MODKEY-l
> $MODKEY-j
> @@ -87,6 +96,9 @@
> $MODKEY-Control-j
> $MODKEY-Control-k
> EOF
> +}
> +
> +setnormkeys
>
> # EVENT LOOP
> wmiir read /event 2>/dev/null |
> @@ -104,6 +116,10 @@
> xwrite /ctl view "$1";;
> Key)
> case "$1" in
> + $MODKEY-Escape)
> + setnormkeys;;
> + $MODKEY-b)
> + setbarekeys;;
> $MODKEY-h)
> xwrite /view/ctl select prev;;
> $MODKEY-l)
>
> _______________________________________________
> wmii_AT_wmii.de mailing list
> http://wmii.de/cgi-bin/mailman/listinfo/wmii
>

I think it might be a good idea to include this in the default wmiirc,
since this provides an easy way to work with apps that conflict with
the default bindings...

Gr. Sander.
Received on Tue Apr 11 2006 - 21:07:29 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:02:25 UTC