[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[patch] XKB -- pc101 keybd via AT->Sun5 adapter



Package: xlib6g
Version: 3.3.2.3a-11

Included is a patch, enabling a new XkbSymbol type, which can be
activated with (from /etc/X11/XF86Config):

    XkbSymbols  "sun/us(sun5pc)"

The patch is to the file /usr/X11R6/lib/X11/xkb/symbols/sun/us.  This
fixes the keyboard (notably, the Alt keys) for those poor souls like
myself who use a PC101 keyboard thru an AT->Sun5 keyboard adapter.
(Well, to explain myself, I have 3 computers sharing one keyboard and
monitor.)

The included patch isn't quite right, but it's functional.  It should
probably be forwarded upstream.

--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>

--- us.orig	Sat Apr  3 02:38:43 1999
+++ us	Sat Apr  3 03:13:08 1999
@@ -232,3 +232,15 @@
     include "sun/us(broken_openlook_map)"
 };
 
+
+// US/ASCII layout for PC101 keyboard going thru an AT to Sun5 adapter
+xkb_symbols "sun5pc" {
+    override "sun/us(sun5)"
+    key <LALT> {	[ 	Alt_L,  Meta_L 		]	};
+    key <RALT> {	[	Alt_R,	Meta_R		]	};
+
+    // begin modifier mappings
+    modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
+	// Mod2 emits error: Alt_L added to symbol map for multiple modifiers
+};
+


Reply to: