From 3f354a2e3374f96f4c555520374f27a2c193d637 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 30 Sep 2010 19:38:23 +0200 Subject: [PATCH] Add htcdream keyboard model, with US,IT,DE keyboard variants Htcdream keyboard layout was largely inspired by palm-pre's layout which can be found here: http://git.webos-internals.org/?p=x11/xkeyboard-config.git;a=commitdiff;h=130db5bdfcb90ea9ce425921f20a39bd8482085f The IT and DE keyboard were mapped looking at real hardware that I have, but the US one was done looking at: http://upload.wikimedia.org/wikipedia/commons/1/18/T-Mobile_G1_launch_event_2.jpg Signed-off-by: Denis 'GNUtoo' Carikli --- symbols/Makefile.am | 2 +- symbols/htcdream | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+), 1 deletions(-) create mode 100644 symbols/htcdream diff --git a/symbols/Makefile.am b/symbols/Makefile.am index 5597c75..8d79f51 100644 --- a/symbols/Makefile.am +++ b/symbols/Makefile.am @@ -32,7 +32,7 @@ terminate \ tj tm tr tz \ ua us uz vn \ za \ -altwin capslock compose ctrl empty eurosign rupeesign group inet \ +altwin capslock compose ctrl empty eurosign rupeesign group htcdream inet \ keypad kpdl level3 level5 nbsp olpc shift srvr_ctrl typo dir_data = $(dist_symbols_DATA) diff --git a/symbols/htcdream b/symbols/htcdream new file mode 100644 index 0000000..53bb803 --- /dev/null +++ b/symbols/htcdream @@ -0,0 +1,156 @@ +partial alphanumeric_keys +xkb_symbols "it" { + include "htcdream(common_keys)" + include "level3(alt_switch)" + name[Group1]= "Italy"; + + //second row + key { [ q, Q, Tab, Tab ] }; + key { [ w, W, grave, grave ] }; + key { [ e, E, egrave, egrave] }; + key { [ r, R, eacute, eacute ] }; + key { [ t, T, quotedbl, quotedbl ] }; + key { [ y, Y, apostrophe, apostrophe ] }; + key { [ u, U, ugrave, ugrave ] }; + key { [ i, I, igrave, igrave ] }; + key { [ o, O, ograve, ograve ] }; + key { [ p, P, NoSymbol, NoSymbol ] }; + + //third row + key { [ a, A, agrave, agrave ] }; + key { [ s, S, bar, bar ] }; + key { [ d ,D, EuroSign, EuroSign ] }; + key { [ f, F, sterling, sterling ] }; + key { [ g, G, division, division ] }; + key { [ h, H, multiply, multiply ] }; + key { [ j, J, minus, minus ] }; + key { [ k, K, plus, plus ] }; + key { [ l, L, equal, equal ] }; + + //forth row + key { [ z, Z, underscore, underscore ] }; + key { [ x, X, asciitilde, asciitilde ] }; + key { [ c, C, less, less ] }; + key { [ v, V, greater, greater ] }; + key { [ b, B, backslash, backslash ] }; + key { [ n, N, colon, colon ] }; + key { [ m, M, semicolon, semicolon ] }; + key { [ comma, comma, question, question ] }; + + //fifth row + key { [ at, at, NoSymbol, NoSymbol ] }; +}; + +partial alphanumeric_keys +xkb_symbols "de" { + include "htcdream(common_keys)" + include "level3(alt_switch)" + name[Group1]= "Germany"; + + //second row + key { [ q, Q, Tab, Tab ] }; + key { [ w, W, grave, grave ] }; + key { [ e, E, EuroSign, EuroSign ] }; + key { [ r, R, underscore, underscore ] }; + key { [ t, T, sterling, sterling] }; + key { [ z, Z, division, division ] }; + key { [ u, U, udiaeresis, udiaeresis ] }; + key { [ i, I, minus, minus ] }; + key { [ o, O, odiaeresis, odiaeresis ] }; + key { [ p, P, equal, equal ] }; + + //third row + key { [ a, A, adiaeresis, adiaeresis ] }; + key { [ s, S, ssharp, ssharp] }; + key { [ d ,D, backslash, backslash ] }; + key { [ f, F, braceleft, braceleft ] }; + key { [ g, G, braceright, braceright ] }; + key { [ h, H, multiply, multiply ] }; + key { [ j, J, colon, colon ] }; + key { [ k, K, plus, plus ] }; + key { [ l, L, apostrophe, apostrophe ] }; + + //forth row + key { [ y, Y, bar, bar ] }; + key { [ x, X, bracketleft, bracketleft ] }; + key { [ c, C, bracketright, bracketright ] }; + key { [ v, V, less, less ] }; + key { [ b, B, greater, greater ] }; + key { [ n, N, semicolon, semicolon ] }; + key { [ m, M, quotedbl, quotedbl ] }; + key { [ comma, comma, question, question ] }; + + //fifth row + key { [ at, at, asciitilde, asciitilde ] }; +}; + +//based on http://upload.wikimedia.org/wikipedia/commons/1/18/T-Mobile_G1_launch_event_2.jpg +partial alphanumeric_keys +xkb_symbols "us" { + include "htcdream(common_keys)" + include "level3(alt_switch)" + name[Group1]= "USA"; + + //second row + key { [ q, Q, Tab, Tab ] }; + key { [ w, W, grave, grave ] }; + key { [ e, E, underscore, underscore ] }; + key { [ r, R, sterling, sterling ] }; + key { [ t, T, EuroSign, EuroSign ] }; + key { [ y, Y, division, division ] }; + key { [ u, U, multiply, multiply ] }; + key { [ i, I, minus, minus ] }; + key { [ o, O, plus, plus ] }; + key { [ p, P, equal, equal ] }; + + //third row + key { [ a, A, NoSymbol, NoSymbol ] }; + key { [ s, S, bar, bar ] }; + key { [ d ,D, backslash, backslash ] }; + key { [ f, F, braceleft, braceleft ] }; + key { [ g, G, braceright, braceright ] }; + key { [ h, H, colon, colon ] }; + key { [ j, J, semicolon, semicolon ] }; + key { [ k, K, quotedbl, quotedbl ] }; + key { [ l, L, apostrophe, apostrophe ] }; + + //forth row + key { [ z, Z, NoSymbol, NoSymbol ] }; + key { [ x, X, NoSymbol, NoSymbol ] }; + key { [ c, C, NoSymbol, NoSymbol ] }; + key { [ v, V, bracketleft, bracketleft ] }; + key { [ b, B, bracketright, bracketright ] }; + key { [ n, N, less, less ] }; + key { [ m, M, greater, greater ] }; + key { [ comma, comma, question, question ] }; + + //fifth row + key { [ at, at, asciitilde, asciitilde ] }; +}; + + +xkb_symbols "common_keys" { + key { [ BackSpace ] }; + key { [ Return ] }; + + //first row + key { [ 1, 1, exclam, exclam ] }; + key { [ 2, 2, at, at ] }; + key { [ 3, 3, numbersign, numbersign ] }; + key { [ 4, 4, dollar, dollar ] }; + key { [ 5, 5, percent, percent ] }; + key { [ 6, 6, dead_circumflex, dead_circumflex ] }; //check why I have to press twice + key { [ 7, 7, ampersand, ampersand ] }; + key { [ 8, 8, asterisk, asterisk ] }; + key { [ 9, 9, parenleft, parenleft ] }; + key { [ 0, 0, parenright, parenright ] }; + + //fifth row + key { [ Shift_L ] }; + key { [ space ] }; + key { [ period, period, slash, slash ] }; + key { [ Shift_R ] }; + + //modifiers + modifier_map Shift { , }; +}; -- 1.7.0.4