On 4/11/06, Georg Neis <[EMAIL PROTECTED]> 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)
>
> _______________________________________________
> [email protected] 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.

_______________________________________________
[email protected] mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to