--- programs/xkbcomp/rules/xorg.orig Tue Aug 2 13:17:53 2005 +++ programs/xkbcomp/rules/xorg Tue Aug 2 13:18:09 2005 @@ -26,6 +26,7 @@ pc98 = xfree98(pc98) abnt2 = xfree86(abnt2) jp106 = xfree86(jp106) + sun6 = xfree86(type6) * = xfree86 ! $azerty = be fr fr-latin9 @@ -60,12 +61,14 @@ * = pc(pc104) ! model variant layout = symbols + sun6 nodeadkeys * = en_US(pc105)+%l(%v)+pc/type6(%l) $maclaptop nodeadkeys * = macintosh/us(extended)+macintosh/%l%(v)+apple(laptop_bad_switch) $mac nodeadkeys * = macintosh/us(extended)+macintosh/%l%(v) $pcmodels nodeadkeys $oldlayouts = en_US(%m%_v)+%l%(v) * nodeadkeys $oldlayouts = en_US(pc105%_v)+%l%(v) ! model layout = symbols + sun6 * = en_US(pc105)+%l+pc/type6(%l) pc98 nec/jp = nec/jp(pc98) abnt2 br = pc/pc(pc104)+pc/br $maclaptop us = macintosh/us(extended)+apple(laptop_bad_switch) --- programs/xkbcomp/rules/xorg.lst.orig Tue Aug 2 13:21:12 2005 +++ programs/xkbcomp/rules/xorg.lst Tue Aug 2 13:21:49 2005 @@ -100,6 +100,7 @@ trust Trust Wireless Keyboard Classic trustda Trust Direct Access Keyboard yahoo Yahoo! Internet Keyboard + sun6 SUN USB (Type6) Keyboard connected to PC // The entries here should be ordered as follows: --- programs/xkbcomp/keycodes/xfree86.orig Tue Aug 2 13:20:16 2005 +++ programs/xkbcomp/keycodes/xfree86 Tue Aug 2 13:20:51 2005 @@ -411,3 +411,26 @@ = 51; = 134; }; + +xkb_keycodes "type6" { + include "xfree86(xfree86)" + = 115; + = 116; + = 117; + = 232; + = 182; + = 183; + = 184; + = 189; + = 248; + = 191; + = 192; + = 229; + = 188; + = 226; + = 166; + = 165; + = 158; + = 222; +}; + --- programs/xkbcomp/symbols/pc/type6.orig Tue Aug 2 13:19:03 2005 +++ programs/xkbcomp/symbols/pc/type6 Tue Aug 2 13:19:24 2005 @@ -0,0 +1,55 @@ +partial alphanumeric_keys +xkb_symbols "type6" { + key { [ Meta_L ] }; + key { [ Meta_R ] }; + key { [ Multi_key ] }; + key { [ F11 ], [ Cancel ] }; + key { [ F12 ], [ Redo ] }; + key { [ F13 ], [ SunProps ] }; + key { [ F14 ], [ Undo ] }; + key { [ F15 ], [ SunFront ] }; + key { [ F16 ], [ SunCopy ] }; + key { [ F17 ], [ SunOpen ] }; + key { [ F18 ], [ SunPaste ] }; + key { [ F19 ], [ Find ] }; + key { [ F20 ], [ SunCut ] }; + key { [ SunAudioMute, SunVideoDegauss ] }; + key { [ SunAudioLowerVolume,SunVideoLowerBrightness ] }; + key { [ SunAudioRaiseVolume,SunVideoRaiseBrightness ] }; + key { [ SunPowerSwitch, SunPowerSwitchShift ] }; + key { [ Help ] }; +}; + +partial alphanumeric_keys +xkb_symbols "us" { + include "pc/type6" + // Fake keys for virtual<->real modifiers mapping + key { [ ISO_Level3_Shift ] }; + key { [ Mode_switch ] }; + modifier_map Mod5 { , }; +}; + +partial alphanumeric_keys +xkb_symbols "de" { + include "pc/type6" + key { [ less, greater, bar, brokenbar ] }; + // Fake keys for virtual<->real modifiers mapping + key { [ ISO_Level3_Shift ] }; + key { [ Mode_switch ] }; + modifier_map Mod5 { , }; +}; + +xkb_symbols "fr_CH" { + include "pc/type6" + key { [ less, greater, bar, brokenbar ] }; + // Fake keys for virtual<->real modifiers mapping + key { [ ISO_Level3_Shift ] }; + key { [ Mode_switch ] }; + modifier_map Mod5 { , }; + override key { [ 4, ccedilla ], + [ asciicircum ] }; + override key { [ 5, percent ], + [ asciitilde ] }; + override key { [ 0, equal ], + [ grave ] }; +};