Subject: Re: X keymapping
To: Joel CARNAT <joel@carnat.net>
From: Rui Paulo <rpaulo@NetBSD.org>
List: netbsd-users
Date: 09/12/2005 22:14:42
--EeQfGwPcQSOJBaQU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On 2005.09.12 23:04:12 +0200, Joel CARNAT wrote:
| Hi,
|=20
| I know this is more XFree86 than NetBSD, but I just can't find the right
| thing on google... So, I have the 'Logitech UltraX keyboard'. It has a
| big 'DEL' key when 'standard' one have 'INS' on the top of 'DEL'. If I
| want to use the 'INS' key, I have to use the 'Fn' key - which is not
| easy when I want to "Shift-INS" to paste things.
|=20
| So, (how) can I (re)map Shift+DEL to paste rather than Shift+INS ?
|=20
| Here's what xev says when I hit Shift, then DEL, then release both :
| ************************************
| KeyPress event, serial 34, synthetic NO, window 0x1800001,
| root 0x60, subw 0x0, time 3685662, (134,111), root:(138,189),
| state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
| XLookupString gives 0 bytes:=3D20
| XmbLookupString gives 0 bytes:=3D20
| XFilterEvent returns: False
|=20
| KeyPress event, serial 34, synthetic NO, window 0x1800001,
| root 0x60, subw 0x0, time 3686934, (134,111), root:(138,189),
| state 0x1, keycode 107 (keysym 0xffff, Delete), same_screen YES,
| XLookupString gives 1 bytes: (7f) ""
| XFilterEvent returns: False
|=20
| KeyRelease event, serial 34, synthetic NO, window 0x1800001,
| root 0x60, subw 0x0, time 3687014, (134,111), root:(138,189),
| state 0x1, keycode 107 (keysym 0xffff, Delete), same_screen YES,
| XLookupString gives 1 bytes: (7f) ""
|=20
| KeyRelease event, serial 34, synthetic NO, window 0x1800001,
| root 0x60, subw 0x0, time 3688494, (134,111), root:(138,189),
| state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
| XLookupString gives 0 bytes:=3D20
| ************************************
I believe that you can use xmodmap(1). Something like:
keycode 106 =3D Delete
keycode 107 =3D Insert
will switch the Delete and Insert keys.
-- Rui Paulo
--EeQfGwPcQSOJBaQU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
iD4DBQFDJe/CZPqyxs9FH4QRAtpHAJMFV9p8/UM8YG0RRUdCwju1dtUfAJ42QOUQ
k1xbP2GPBmJGzJ0l3P+amg==
=aKVb
-----END PGP SIGNATURE-----
--EeQfGwPcQSOJBaQU--