From sawfish-admin@lists.eazel.xxx  Tue Feb 12 22:33:46 2002
Return-Path: <sawfish-admin@lists.eazel.xxx>
Delivered-To: xxxxxx@xxxxxx.xxx
Received: from mx.eazel.xxx (unknown [206.184.208.53]) by xxxxxxx.xx.xxxxxx.xxx (Postfix) with ESMTP id D35D93D70 for <xxxxxx@xxxxxx.xxx>; Tue, 12 Feb 2002 22:33:45 -0500 (EST)
Received: from mx.eazel.xxx (localhost.localdomain [127.0.0.1]) by mx.eazel.xxx (8.11.0/8.11.0) with ESMTP id g1D3Nh520286; Tue, 12 Feb 2002 19:23:59 -0800
Received: from cinnamon.whistlingfish.net (dsl231-043-215.sea1.dsl.speakeasy.net [216.231.43.215]) by mx.eazel.xxx (8.11.0/8.11.0) with ESMTP id g1D3NH520264 for <sawfish@lists.eazel.xxx>; Tue, 12 Feb 2002 19:23:33 -0800
Received: from [216.223.25.12] (helo=benzene.cobaltgroup.xxx) by cinnamon.whistlingfish.net with esmtp (Exim 3.32 #1 (Debian)) id 16apf4-0006Pv-03; Tue, 12 Feb 2002 19:00:46 -0800
Date: Tue, 12 Feb 2002 16:56:32 -0800
From: Matt Tucker <tuck@whistlingfish.xxx>
To: "Guillermo S. Romero / Familia Romero" <famrom@infernal-iceberg.xxx>
Cc: sawfish@lists.eazel.xxx
Subject: Re: emacs compatible bindings?
Message-ID: <76980000.1013561792@benzene.cobaltgroup.xxx>
In-Reply-To: <20020213005715.A2167@blitzkrieg.battleship>
References: <F1448yuveIQbJaafMKD000026dd@hotmail.com> <vbu1snybwd.fsf@erwin.isode.com> <m2heonfzo4.fsf@linux3.maruska.tin.it> <14140000.1013480823@benzene.cobaltgroup.com> <m2d6zbe7sm.fsf@linux3.maruska.tin.it> <20020213005715.A2167@blitzkrieg.battleship>
X-Mailer: Mulberry/2.2.0b1 (Linux/x86)
Mail-Copies-To: nobody
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="==========413605783=========="
Sender: sawfish-admin@lists.eazel.com
Errors-To: sawfish-admin@lists.eazel.com
X-Mailman-Version: 1.1
Precedence: bulk
List-Id: General discussion of the sawfish window manager <sawfish.lists.eazel.com>
X-BeenThere: sawfish@lists.eazel.com
X-SpamBouncer: 1.4 (8/24/01)
X-SBNote: From Admin
X-SBNote: FROM_DAEMON/Listserv
X-SBClass: Admin
X-Evolution: 000000cb-0020

--==========413605783==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- "Guillermo S. Romero / Familia Romero" <famrom@infernal-iceberg.com>
spake thusly:

> mmc@maruska.dyndns.org (2002-02-12 at 0346.33 +0100):
>> if you use xkb (as follows), i have nothing to say --- i talk about
>> xmodmap here.
> 
> Can anybody post XKB examples that cover just Hyper or similar? :]

I basically did the following (note that this is Debian, so your config
might differ slightly, particularly as to the location of the xkb
directory). Also note that this is for working off the us keymap; if
you want to modify anything else, you'll have to change it around a
little. 

    cd /etc/X11/xkb/rules
    cat xfree86 \
        | perl -pe 's/\b us \b/custom.us/gx' \
        > custom
    cd ../symbols
    cat us \
        | perl -pe 's/\b us \b/custom.us/gx' \
        > custom.us
    patch custom.us < custom.us.diff

----- begin custom.us.diff -----
--- us  Tue Feb 12 16:49:59 2002
+++ custom.us   Tue Jul 24 18:32:41 2001
@@ -220,15 +220,16 @@
 // definition for the extra keys on 104-key "Windows95" keyboards
 xkb_symbols "pc104" {
     include "custom.us(generic101)"
-    key <LALT> {   [   Alt_L       ]   };
-    key <RALT> {   [   Alt_R       ]   };
-    key <LWIN> {   [   Meta_L      ]   };
-    key <RWIN> {   [   Multi_key   ]   };
-    key <MENU> {   [   Menu        ]   };
+    key <LALT> {   [   Alt_L,  Meta_L      ]   };
+    key <RALT> {   [   Alt_R,  Meta_R      ]   };
+    key <LWIN> {   [   Hyper_L     ]   };
+    key <RWIN> {   [   Hyper_R     ]   };
+    key <MENU> {   [   Super_R     ]   };
 
     // modifier mappings
     modifier_map Mod1   { Alt_L, Alt_R };
-    modifier_map Mod4   { Meta_L, Meta_R };
+    modifier_map Mod3   { Hyper_L, Hyper_R };
+    modifier_map Mod4   { Super_R };
 };
 
 // definition of Euro-style, Right "logo" key == [Mode_switch,
Multi_key]
------ end custom.us.diff ------

----- begin /etc/X11/XF86Config-4 -----
...
Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"Keyboard"
	Option		"CoreKeyboard"

	Option		"AutoRepeat"	"250 30"
	Option		"XkbRules"		"custom"
	Option		"XkbModel"		"pc104"
	Option		"XkbLayout"		"us"
	Option		"XkbOptions"	"ctrl:nocaps"
EndSection
...
------ end /etc/X11/XF86Config-4 ------

--==========413605783==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8abnAU7AqV+YCBioRAusQAKCPJlkHVMnq+Fpe0+0aMlDPIAKtlQCfYB/G
Uz5hwkSEOfBlBWtUMHcouMU=
=Vcfi
-----END PGP SIGNATURE-----

--==========413605783==========--


