| 1 |
# Keymap for factory standard PinePhone keyboard. Modify the actions column to change what they keys do |
| 2 |
# Copyright (C) 2022 Peter Thomason <[email protected]> |
| 3 |
# |
| 4 |
# This program is free software: you can redistribute it and/or modify |
| 5 |
# it under the terms of the GNU General Public License as published by |
| 6 |
# the Free Software Foundation, either version 3 of the License, or |
| 7 |
# (at your option) any later version. |
| 8 |
# |
| 9 |
# This program is distributed in the hope that it will be useful, |
| 10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
# GNU General Public License for more details. |
| 13 |
# |
| 14 |
# You should have received a copy of the GNU General Public License |
| 15 |
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
strings as usual |
| 18 |
compose as usual for "iso-8859-1" |
| 19 |
include "linux-keys-bare" |
| 20 |
keymaps 0-2,4-5,8-9,12 |
| 21 |
|
| 22 |
# First Row |
| 23 |
keycode 1 = Escape nul nul nul nul Meta_Escape |
| 24 |
keycode 2 = one exclam bar nul nul Meta_one Meta_bar |
| 25 |
keycode 3 = two at backslash Control_backslash nul Meta_two Meta_backslash |
| 26 |
keycode 4 = three numbersign sterling nul nul Meta_three |
| 27 |
keycode 5 = four dollar euro nul nul Meta_four |
| 28 |
keycode 6 = five percent asciitilde nul nul Meta_five Meta_asciitilde |
| 29 |
keycode 7 = six asciicircum grave Control_asciicircum nul Meta_six Meta_grave |
| 30 |
keycode 8 = seven ampersand minus nul nul Meta_seven Meta_minus |
| 31 |
keycode 9 = eight asterisk equal nul nul Meta_eight Meta_equal |
| 32 |
keycode 10 = nine parenleft underscore Control_underscore nul Meta_nine |
| 33 |
keycode 11 = zero parenright plus nul nul Meta_zero |
| 34 |
keycode 14 = BackSpace |
| 35 |
|
| 36 |
# Second Row |
| 37 |
keycode 15 = Tab nul nul nul nul nul Meta_Tab |
| 38 |
keycode 16 = q Q nul Control_q |
| 39 |
keycode 17 = w W nul Control_w |
| 40 |
keycode 18 = e E nul Control_e |
| 41 |
keycode 19 = r R nul Control_r |
| 42 |
keycode 20 = t T nul Control_t |
| 43 |
keycode 21 = y Y nul Control_y |
| 44 |
keycode 22 = u U nul Control_u |
| 45 |
keycode 23 = i I nul Control_i |
| 46 |
keycode 24 = o O nul Control_o |
| 47 |
keycode 25 = p P nul Control_p |
| 48 |
|
| 49 |
# Fifth Row, second from right and right keys |
| 50 |
keycode 26 = bracketleft braceleft nul nul nul Meta_bracketleft |
| 51 |
keycode 27 = bracketright braceright Control_bracketright nul nul Meta_bracketright |
| 52 |
|
| 53 |
# Second Row Enter key |
| 54 |
keycode 28 = Return |
| 55 |
|
| 56 |
# Fifth Row, left key |
| 57 |
keycode 29 = Control |
| 58 |
|
| 59 |
# Third Row |
| 60 |
keycode 30 = a A nul Control_a |
| 61 |
keycode 31 = s S nul Control_s |
| 62 |
keycode 32 = d D nul Control_d |
| 63 |
keycode 33 = f F nul Control_f |
| 64 |
keycode 34 = g G nul Control_g |
| 65 |
keycode 35 = h H nul Control_h |
| 66 |
keycode 36 = j J nul Control_j |
| 67 |
keycode 37 = k K nul Control_k |
| 68 |
keycode 38 = l L nul Control_l |
| 69 |
keycode 39 = semicolon colon nul nul nul Meta_semicolon |
| 70 |
|
| 71 |
# Fifth Row, third from right |
| 72 |
keycode 40 = apostrophe quotedbl nul nul nul Meta_apostrophe |
| 73 |
|
| 74 |
# Fourth Row |
| 75 |
keycode 42 = Shift |
| 76 |
keycode 44 = z Z nul Control_z |
| 77 |
keycode 45 = x X nul Control_x |
| 78 |
keycode 46 = c C nul Control_c |
| 79 |
keycode 47 = v V nul Control_v |
| 80 |
keycode 48 = b B nul Control_b |
| 81 |
keycode 49 = n N nul Control_n |
| 82 |
keycode 50 = m M nul Control_m |
| 83 |
keycode 51 = comma less nul nul nul Meta_comma Meta_less |
| 84 |
keycode 52 = period greater nul nul nul Meta_period Meta_greater |
| 85 |
keycode 53 = slash question nul nul nul Meta_slash |
| 86 |
|
| 87 |
# Fifth Row, left of space bar, and space bar |
| 88 |
keycode 56 = Alt |
| 89 |
keycode 57 = space nul nul nul nul Meta_space |
| 90 |
|
| 91 |
# First row with Fn key held in |
| 92 |
# Known isses with 1st Generation of the Keyboard |
| 93 |
# There is issues with the electrical signals between Alt + Fn + F2 and F3 |
| 94 |
# This will cause multiple triggering of F2 or F3, normally has been F3 |
| 95 |
# If you need access to Console 2 then use Alt + Arrow Key or Ctrl + Fn + F2 or F3 |
| 96 |
# https://codeberg.org/HazardChem/PinePhone_Keyboard/issues/5 |
| 97 |
keycode 59 = F1 F11 F21 Console_1 nul Console_1 nul Console_1 |
| 98 |
keycode 60 = F2 F12 F22 Console_2 nul Console_2 nul Console_2 |
| 99 |
keycode 61 = F3 F13 F23 Console_3 nul Console_3 nul Console_3 |
| 100 |
keycode 62 = F4 F14 F24 Console_4 nul Console_4 nul Console_4 |
| 101 |
keycode 63 = F5 F15 F25 Console_5 nul Console_5 nul Console_5 |
| 102 |
keycode 64 = F6 F16 F26 Console_6 nul Console_6 nul Console_6 |
| 103 |
keycode 65 = F7 F17 F27 Console_7 nul Console_7 nul Console_7 |
| 104 |
keycode 66 = F8 F18 F28 Console_8 nul Console_8 nul Console_8 |
| 105 |
keycode 67 = F9 F19 F29 Console_9 nul Console_9 nul Console_9 |
| 106 |
keycode 68 = F10 F20 F30 Console_10 nul Console_10 nul Console_10 |
| 107 |
|
| 108 |
# Pine key with Fn key held in |
| 109 |
#keycode 99 = Prtsc |
| 110 |
|
| 111 |
# Fifth Row, right of space bar |
| 112 |
keycode 100 = AltGr |
| 113 |
|
| 114 |
# Fourth row, third from right with Fn key held in |
| 115 |
keycode 102 = Home |
| 116 |
keycode 103 = Up nul nul nul nul KeyboardSignal |
| 117 |
|
| 118 |
# Fifth row, third from right with Fn key held in |
| 119 |
keycode 105 = Left nul nul nul nul Decr_Console |
| 120 |
|
| 121 |
# Fifth row, right hand key with Fn key held in |
| 122 |
keycode 106 = Right nul nul nul nul Incr_Console |
| 123 |
|
| 124 |
# Fourth row, right hand key with Fn key held in |
| 125 |
keycode 107 = End |
| 126 |
|
| 127 |
# Fifth row, second from right with Fn key held in |
| 128 |
keycode 108 = Down |
| 129 |
|
| 130 |
# Third row, next to enter key with Fn key held in |
| 131 |
keycode 110 = Insert |
| 132 |
|
| 133 |
# First row, right hand side key with Fn key held in |
| 134 |
keycode 111 = Remove nul nul nul nul Meta_Delete |
| 135 |
|
| 136 |
# Third row, left hand pine key |
| 137 |
#keycode 125 = LeftMeta |
| 138 |
|
| 139 |
# Fifth row, second from left |
| 140 |
#keycode 464 = Fn |
| 141 |
|
| 142 |
# Top row, first from the left with Fn key held in |
| 143 |
#keycode 465 = Fn_Escape |