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

From: Georg Neis <gn_AT_oglaroon.de>
Date: Tue, 11 Apr 2006 20:40:43 +0200

"Bartosz Trudnowski" <hrr888_AT_gmail.com> wrote:
> BTW. In wmii-2.5 there was 'bare' key mode, which I miss sometimes...

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)
Received on Tue Apr 11 2006 - 20:41:09 UTC

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