From 29caecafe108436ffdc947bd36844f5e3e056d7e Mon Sep 17 00:00:00 2001 From: undef Date: Thu, 14 Apr 2022 08:54:12 +0000 Subject: [PATCH] Add model for Pine64 PinePhone keyboard This adds a model for the Pine64 PinePhone Keyboard (https://wiki.pine64.org/wiki/PinePhone_(Pro)_Keyboard). Specifically, it implements the symbols listed on the top row of the keyboard as a third layer which are not available in the kernel driver. Backport by ollieparanoid from: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/322 --- rules/0002-base.lists.part | 2 +- rules/base.xml | 7 +++++++ symbols/inet | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/rules/0002-base.lists.part b/rules/0002-base.lists.part index 75059447..8c9eaf82 100644 --- a/rules/0002-base.lists.part +++ b/rules/0002-base.lists.part @@ -37,7 +37,7 @@ sven sven303 symplon \ teck227 teck229 \ toshiba_s3000 trust trustda \ - unitekkb1925 yahoo \ + unitekkb1925 yahoo ppkb \ apex300 ! $inetmediakbds = acer_ferrari4k acer_laptop btc5090 btc9019u cherryblueb \ diff --git a/rules/base.xml b/rules/base.xml index 8bc0447a..ef5fe221 100644 --- a/rules/base.xml +++ b/rules/base.xml @@ -1333,6 +1333,13 @@ Google + + + ppkb + PinePhone Keyboard + Pine64 + + diff --git a/symbols/inet b/symbols/inet index 518d846e..18fa9eb5 100644 --- a/symbols/inet +++ b/symbols/inet @@ -2071,3 +2071,18 @@ xkb_symbols "teck229" { include "inet(teck227)" }; + +partial alphanumeric_keys +xkb_symbols "ppkb" { + + key { [ 1, exclam, bar ] }; + key { [ 2, at, backslash ] }; + key { [ 3, numbersign, sterling ] }; + key { [ 4, dollar, EuroSign ] }; + key { [ 5, percent, asciitilde ] }; + key { [ 6, asciicircum, grave ] }; + key { [ 7, ampersand, minus ] }; + key { [ 8, asterisk, equal ] }; + key { [ 9, parenleft, underscore ] }; + key { [ 0, parenright, plus ] }; +}; -- 2.34.1