diff options
author | Carsten Haitzler <raster@openmoko.org> | 2009-04-14 20:20:44 +1000 |
---|---|---|
committer | Carsten Haitzler <raster@openmoko.org> | 2009-04-14 23:25:14 +1000 |
commit | e71ef2ab3c2238cd175530ca9067a6d98cfaaa57 (patch) | |
tree | 11e52a96786adfbf28a5fc6ad85cdf34b5d4f3d1 /recipes | |
parent | 660bc2c08fe60a65331dee2980cd9b49c92b9b87 (diff) |
palmt650-keyboard-modmap: keyboard map for palmt650 so it works right
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/palmt650/palmt650-keyboard-modmap.bb | 23 | ||||
-rw-r--r-- | recipes/palmt650/palmt650-keyboard-modmap/60xXmodmap | 8 | ||||
-rw-r--r-- | recipes/palmt650/palmt650-keyboard-modmap/Xmodmap | 118 |
3 files changed, 149 insertions, 0 deletions
diff --git a/recipes/palmt650/palmt650-keyboard-modmap.bb b/recipes/palmt650/palmt650-keyboard-modmap.bb new file mode 100644 index 0000000000..c005136761 --- /dev/null +++ b/recipes/palmt650/palmt650-keyboard-modmap.bb @@ -0,0 +1,23 @@ +DESCRIPTION = "A X keyboard modifier mapping for the Treo650" +LICENSE = "GPL" +PV = "0.0.3" +PR = "r0.02" + +SRC_URI = "\ + file://60xXmodmap \ + file://Xmodmap \ +" + +S = "${WORKDIR}" + +do_install() { + install -d ${D}/etc/X11/ + install ${WORKDIR}/Xmodmap ${D}/etc/X11/Xmodmap + install -d ${D}/etc/X11/Xsession.d + install ${WORKDIR}/60xXmodmap ${D}/etc/X11/Xsession.d/60xXmodmap +} + +PACKAGE_ARCH = "all" + +FILES_${PN} += "/etc/X11/Xmodmap" +FILES_${PN} += "/etc/X11/Xsession.d/60xXmodmap" diff --git a/recipes/palmt650/palmt650-keyboard-modmap/60xXmodmap b/recipes/palmt650/palmt650-keyboard-modmap/60xXmodmap new file mode 100644 index 0000000000..db814a06a8 --- /dev/null +++ b/recipes/palmt650/palmt650-keyboard-modmap/60xXmodmap @@ -0,0 +1,8 @@ +# -*- sh -*- +# Xsession.d script for Xmodmap +# +# +# This file is sourced by Xsession(5), not executed. + +xmodmap /etc/X11/Xmodmap +xmodmap -e 'remove Control = Mode_switch' diff --git a/recipes/palmt650/palmt650-keyboard-modmap/Xmodmap b/recipes/palmt650/palmt650-keyboard-modmap/Xmodmap new file mode 100644 index 0000000000..9086cd1a79 --- /dev/null +++ b/recipes/palmt650/palmt650-keyboard-modmap/Xmodmap @@ -0,0 +1,118 @@ +!!!!! get modifiers right +remove Control = Mode_switch +remove Control = Shift_R +remove Shift = Menu +remove Shift = Control_R +! Alt key -> Alt_R +keycode 108 = Alt_R +! Shift(R) key -> Shift_R +!keycode 105 = Shift_R +!add Shift = Shift_R +! hack - should be Control_R for terminal +keycode 105 = Control_R +add Control = Control_R +! blue key -> Mode_switch +keycode 37 = Mode_switch +add mod5 = Mode_switch + +!!!!! top mute/unmute +! keycode mute = has no keycode + +!!!!! side buttons +keycode 123 = Prior +keycode 122 = Next +keycode 71 = End + +!!!!! top 2 buttons left/right and up from arrow key nav +!! below - added hacked symbols: percent asciicircum +keycode 69 = Home percent asciicircum +!! below - added hacked symbols: percent asciicircum +keycode 9 = Menu Delete Insert + +!!!!! arrowkeys +keycode 111 = Up +keycode 116 = Down +keycode 113 = Left +keycode 114 = Right +keycode 104 = KP_Enter + +!!!!! answer, calendar, mail, hangup/power +!!!! CHECKME +!! below - added hacked symbols: Escape Print +keycode 72 = F1 Escape Print +!! below - added hacked symbols: equal semicolon +keycode 67 = F2 equal semicolon +!! below - added hacked symbols: bracketleft braceleft +keycode 68 = F3 bracketleft braceleft +!! below - added hacked symbols: bracketright braceright +keycode 70 = F4 bracketright braceright + +!!!!! 1st row +keycode 24 = q Q slash +keycode 25 = w W plus +keycode 26 = e E 1 +keycode 27 = r R 2 +keycode 28 = t T 3 +keycode 29 = y Y parenleft +keycode 30 = u U parenright +keycode 31 = i I at +keycode 32 = o O quotedbl +!! below - added hacked symbols: underscore +keycode 33 = p P underscore +!!!!! 2nd row +keycode 38 = a A ampersand +keycode 39 = s S minus +keycode 40 = d D 4 +keycode 41 = f F 5 +keycode 42 = g G 6 +keycode 43 = h H dollar +keycode 44 = j J exclam +keycode 45 = k K colon +keycode 46 = l L apostrophe +!! below - added hacked symbols: backslash asciitilde +keycode 22 = BackSpace backslash asciitilde +!!!!! 3rd row +keycode 37 = Mode_switch +keycode 52 = z S asterisk +keycode 53 = x D 7 +keycode 54 = c F 8 +keycode 55 = v G 9 +keycode 56 = b H numbersign +keycode 57 = n J question +keycode 58 = m K comma +!! below - added hacked symbols: bar grave +keycode 60 = period bar grave +keycode 36 = Return +!!!!! bottom row +keycode 50 = Shift_L +!! below - added hacked symbols: less greater +keycode 19 = 0 less greater +keycode 65 = space +keycode 108 = Alt_R +!! below - hacked to be Control_R instead of Shift_R +keycode 105 = Control_R + +!!!!! missing standard key symbols: +! % hacked +! ^ hacked +! _ hacked +! = hacked +! [ hacked +! ] hacked +! { hacked +! } hacked +! ; hacked +! < hacked +! > hacked +! \ hacked +! | hacked +! ` hacked +! ~ hacked +! Escape hacked +! Delete hacked +! Insert hacked +! Print hacked +! Pause +! Caps_Lock +! Num_Lock +! Sroll_Lock |