From a067e4f1a4660ef51d27652115598201e6483951 Mon Sep 17 00:00:00 2001 From: shadchin Date: Sun, 10 Apr 2011 17:49:13 +0000 Subject: [PATCH] Add support for zaurus ok matthieu@ --- data/xkeyboard-config/symbols/Makefile | 5 +- dist/xkeyboard-config/rules/base.ml_s.part | 1 + dist/xkeyboard-config/symbols/zaurus | 69 ++++++++++++++++++++++ 3 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 dist/xkeyboard-config/symbols/zaurus diff --git a/data/xkeyboard-config/symbols/Makefile b/data/xkeyboard-config/symbols/Makefile index f18a85a2a..54aa360b8 100644 --- a/data/xkeyboard-config/symbols/Makefile +++ b/data/xkeyboard-config/symbols/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2011/04/10 17:10:21 jasper Exp $ +# $OpenBSD: Makefile,v 1.5 2011/04/10 17:49:13 shadchin Exp $ SUBDIR= digital_vndr fujitsu_vndr hp_vndr macintosh_vndr nec_vndr \ nokia_vndr sgi_vndr sony_vndr sun_vndr xfree68_vndr @@ -14,5 +14,8 @@ DATA= ad af al am apl ara at az ba bd be bg br brai bt bw by ca cd ch cn cz \ rupeesign group inet keypad kpdl level3 level5 nbsp olpc shift \ srvr_ctrl typo +# OpenBSD customization +DATA+= zaurus + .include .include diff --git a/dist/xkeyboard-config/rules/base.ml_s.part b/dist/xkeyboard-config/rules/base.ml_s.part index 5d3b46d61..5e3dc02eb 100644 --- a/dist/xkeyboard-config/rules/base.ml_s.part +++ b/dist/xkeyboard-config/rules/base.ml_s.part @@ -37,5 +37,6 @@ olpc * = olpc+%l%(v) $thinkpads br = pc+br(thinkpad) htcdream $htcdreamlayouts = %l(htcdream) + zaurus * = pc+zaurus * $nonlatin = pc+us+%l%(v):2 * * = pc+%l%(v) diff --git a/dist/xkeyboard-config/symbols/zaurus b/dist/xkeyboard-config/symbols/zaurus new file mode 100644 index 000000000..6a2021596 --- /dev/null +++ b/dist/xkeyboard-config/symbols/zaurus @@ -0,0 +1,69 @@ +default partial alphanumeric_keys modifier_keys +xkb_symbols "basic" { + name[Group1]= "US/ASCII"; + + // Upper row + key { [ 1, exclam ] }; + key { [ 2, quotedbl ] }; + key { [ 3, numbersign ] }; + key { [ 4, dollar ] }; + key { [ 5, percent ] }; + key { [ 6, ampersand ] }; + key { [ 7, quoteright ] }; + key { [ 8, parenleft ] }; + key { [ 9, parenright ] }; + key { [ 0, asciitilde ] }; + + key { [ q, Q ] }; + key { [ w, W, asciicircum ] }; + key { [ e, E, equal ] }; + key { [ r, R, plus ] }; + key { [ t, T, bracketleft ] }; + key { [ y, Y, bracketright ] }; + key { [ u, U, braceleft ] }; + key { [ i, I, braceright ] }; + key { [ o, O ] }; + key { [ p, P ] }; + + key { [ Tab, ISO_Left_Tab, Caps_Lock ] }; + + key { [ a, A ] }; + key { [ s, S ] }; + key { [ d, D, quoteleft ] }; + key { [ f, F, backslash ] }; + key { [ g, G, semicolon ] }; + key { [ h, H, colon ] }; + key { [ j, J, asterisk ] }; + key { [ k, K, yen ] }; + key { [ l, L, bar ] }; + + key { [ Shift_L ] }; + key { [ z, Z ] }; + key { [ x, X, SunCut ] }; + key { [ c, C, SunCopy ] }; + // XXX Removed SunPaste from line below + // because it triggers a bug in xterm translations. + key { [ v, V ] }; + key { [ b, B, underscore ] }; + key { [ n, N ] }; + key { [ m, M ] }; + key { [ Shift_R ] }; + key { [ Return ] }; + + key { [ Control_L ] }; + key { [ minus, minus, at ] }; + key { [ space ] }; + key { [ comma, slash, less ] }; + key { [ period, question, greater ] }; + // End alphanumeric section + + // keypad + key { [ Up, Up, Prior ] }; + key { [ Left, Left, Home ] }; + key { [ Down, Down, Next ] }; + key { [ Right, Right, End ] }; + + key { [ Escape ] }; + + include "level3(ralt_switch)" +};