summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-09 16:03:07 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-12-09 16:03:07 +0000
commitd5ac8e4f101cfaf60e582efe34ad40510806a91b (patch)
treeb9cc5ae398d5807470ab94f92f9b8088391e5e2f
parent81c85ddfe4beaf985c7fb4d5441adb4654ef47a4 (diff)
OpenBSD customization: zaurus and Sun keyboards.
-rw-r--r--data/xkbdata/keycodes/xfree864
-rw-r--r--data/xkbdata/rules/xorg7
-rw-r--r--data/xkbdata/symbols/sun/lkeys16
-rw-r--r--data/xkbdata/symbols/zaurus73
4 files changed, 100 insertions, 0 deletions
diff --git a/data/xkbdata/keycodes/xfree86 b/data/xkbdata/keycodes/xfree86
index 05bd5ee71..b8261f103 100644
--- a/data/xkbdata/keycodes/xfree86
+++ b/data/xkbdata/keycodes/xfree86
@@ -411,3 +411,7 @@ xkb_keycodes "abnt2" {
<AC12> = 51;
<KPPT> = 134;
};
+
+xkb_keycodes "sun" {
+ include "xfree86(xfree86)"
+};
diff --git a/data/xkbdata/rules/xorg b/data/xkbdata/rules/xorg
index 94c2854bf..adc2a2da6 100644
--- a/data/xkbdata/rules/xorg
+++ b/data/xkbdata/rules/xorg
@@ -52,6 +52,8 @@
pc98 = xfree98(pc98)
abnt2 = xfree86(abnt2)
jp106 = xfree86(jp106)
+ sun = xfree86(sun)
+ zaurus = xfree86
* = xfree86
! layout[1] = keycodes
@@ -81,6 +83,7 @@
pc98 = nec(pc98)
abnt2 = pc(abnt2)
$mac = macintosh(macintosh)
+ sun = sun(type4)
* = pc(pc104)
! model layout variant = symbols
@@ -304,6 +307,10 @@
* yu(unicodeyz) = pc/pc(pc105)+pc/srp(latinunicodeyz)
pc98 nec/jp = nec/jp(pc98)
abnt2 br = pc/pc(pc104)+pc/br
+ sun us = us(pc104)+sun/lkeys
+ sun en_US = en_US(pc104)+sun/lkeys
+ sun * = en_US(pc104)+sun/lkeys+%l%(v)
+ zaurus * = pc/pc(pc104)+zaurus(basic)
$maclaptop us = macintosh/us(extended)+apple(laptop_bad_switch)
$maclaptop en_US = macintosh/us(extended)+apple(laptop_bad_switch)
$maclaptop * = macintosh/us(extended)+apple(laptop_bad_switch)+macintosh/%l%(v)
diff --git a/data/xkbdata/symbols/sun/lkeys b/data/xkbdata/symbols/sun/lkeys
new file mode 100644
index 000000000..06b347092
--- /dev/null
+++ b/data/xkbdata/symbols/sun/lkeys
@@ -0,0 +1,16 @@
+// sun Left keys for XFree86
+// $OpenBSD: lkeys,v 1.1 2006/12/09 16:03:06 matthieu Exp $
+
+partial alphanumeric_keys
+xkb_symbols "sun" {
+ key <STOP> { [ Cancel ], [ F11 ] };
+ key <AGAI> { [ Redo ], [ F12 ] };
+ key <PROP> { [ SunProps ], [ F13 ] };
+ key <UNDO> { [ Undo ], [ F14 ] };
+ key <FRNT> { [ SunFront ], [ F15 ] };
+ key <COPY> { [ SunCopy ], [ F16 ] };
+ key <OPEN> { [ SunOpen ], [ F17 ] };
+ key <PAST> { [ SunPaste ], [ F18 ] };
+ key <FIND> { [ Find ], [ F19 ] };
+ key <CUT> { [ SunCut ], [ F20 ] };
+};
diff --git a/data/xkbdata/symbols/zaurus b/data/xkbdata/symbols/zaurus
new file mode 100644
index 000000000..7ca789731
--- /dev/null
+++ b/data/xkbdata/symbols/zaurus
@@ -0,0 +1,73 @@
+// $OpenBSD: zaurus,v 1.1 2006/12/09 16:03:06 matthieu Exp $
+
+partial default alphanumeric_keys
+xkb_symbols "basic" {
+ name[Group1]= "US/ASCII";
+
+ // Upper row
+ key <AE01> { [ 1, exclam ] };
+ key <AE02> { [ 2, quotedbl ] };
+ key <AE03> { [ 3, numbersign ] };
+ key <AE04> { [ 4, dollar ] };
+ key <AE05> { [ 5, percent ] };
+ key <AE06> { [ 6, ampersand ] };
+ key <AE07> { [ 7, quoteright ] };
+ key <AE08> { [ 8, parenleft ] };
+ key <AE09> { [ 9, parenright ] };
+ key <AE10> { [ 0, asciitilde ] };
+ key <BKSP> { type="CTRL+ALT",
+ symbols[Group1]= [ BackSpace, Terminate_Server ] };
+
+ key <AD01> { [ q, Q ] };
+ key <AD02> { [ w, W, asciicircum ] };
+ key <AD03> { [ e, E, equal ] };
+ key <AD04> { [ r, R, plus ] };
+ key <AD05> { [ t, T, bracketleft ] };
+ key <AD06> { [ y, Y, bracketright ] };
+ key <AD07> { [ u, U, braceleft ] };
+ key <AD08> { [ i, I, braceright ] };
+ key <AD09> { [ o, O ] };
+ key <AD10> { [ p, P ] };
+
+ key <TAB> { [ Tab, ISO_Left_Tab, Caps_Lock ] };
+
+ key <AC01> { [ a, A ] };
+ key <AC02> { [ s, S ] };
+ key <AC03> { [ d, D, quoteleft ] };
+ key <AC04> { [ f, F, backslash ] };
+ key <AC05> { [ g, G, semicolon ] };
+ key <AC06> { [ h, H, colon ] };
+ key <AC07> { [ j, J, asterisk ] };
+ key <AC08> { [ k, K, yen ] };
+ key <AC09> { [ l, L, bar ] };
+
+ key <LFSH> { [ Shift_L ] };
+ key <AB01> { [ z, Z ] };
+ key <AB02> { [ x, X, SunCut ] };
+ key <AB03> { [ c, C, SunCopy ] };
+ key <AB04> { [ v, V, SunPaste ] };
+ key <AB05> { [ b, B, underscore ] };
+ key <AB06> { [ n, N ] };
+ key <AB07> { [ m, M ] };
+ key <RTSH> { [ Shift_R ] };
+ key <RTRN> { [ Return ] };
+
+ key <RALT> { [ ISO_Level3_Shift ] };
+
+ key <LCTL> { [ Control_L ] };
+ key <AE11> { [ minus, minus, at ] };
+ key <SPCE> { [ space ] };
+ key <AB08> { [ comma, slash, less ] };
+ key <AB09> { [ period, question, greater ] };
+ // End alphanumeric section
+
+ // keypad
+ key <UP> { [ Up, Up, Prior ] };
+ key <LEFT> { [ Left, Left, Home ] };
+ key <DOWN> { [ Down, Down, Next ] };
+ key <RGHT> { [ Right, Right, End ] };
+
+ key <ESC> { [ Escape ] };
+
+ // include "level3(ralt_switch)"
+};