From 3c27235cb6ee8f8a65e8d47708eb9f4f955af897 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Perrin?= Date: Fri, 8 Mar 2024 17:15:17 +0000 Subject: [PATCH] English layout with French accents on dead keys --- README | 7 ++++ rules/evdev.xml | 20 ++++++++++ symbols/gb | 97 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 README create mode 100644 rules/evdev.xml create mode 100644 symbols/gb diff --git a/README b/README new file mode 100644 index 0000000..0e63c5b --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +Put this folder under $XDG_CONFIG_HOME (ie. the variant file should end up +as ~/.config/xkb/symbols/gb). + +Log out / back in, then select the new variant. Under GNOME, go in the +"Settings" tools, "Keyboard" page, in "Input Sources" the little "+", +"Add an Input Source" for "English (United Kingdom)", and find +"English (French accents on dead keys)". diff --git a/rules/evdev.xml b/rules/evdev.xml new file mode 100644 index 0000000..0c95aca --- /dev/null +++ b/rules/evdev.xml @@ -0,0 +1,20 @@ + + + + + + + gb + + + + + FR-accents + English (French accents) + English (French accents on dead keys) + + + + + + diff --git a/symbols/gb b/symbols/gb new file mode 100644 index 0000000..88836a5 --- /dev/null +++ b/symbols/gb @@ -0,0 +1,97 @@ +partial alphanumeric_keys +xkb_symbols "FR-accents" { + + include "gb(basic)" + name[Group1]= "UK (French accents)"; + + // top row (digits) + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ grave, notsign, dead_grave, bar ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ 1, exclam, exclamdown, onesuperior ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ 2, quotedbl, dead_diaeresis, twosuperior ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ 4, dollar, EuroSign, cent ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ 6, asciicircum, dead_circumflex, fiveeighths ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ minus, underscore, emdash, endash ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ equal, plus, multiply, division ] + }; + + // QWE... row + key { + type= "FOUR_LEVEL_SEMIALPHABETIC", + symbols[Group1]= [ q, Q, at, Greek_OMEGA ] + }; + key { + type= "FOUR_LEVEL_SEMIALPHABETIC", + symbols[Group1]= [ r, R, registered, registered ] + }; + + key { + type= "FOUR_LEVEL_ALPHABETIC", + symbols[Group1]= [ o, O, oe, OE ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ bracketleft, braceleft, guillemotleft, NoSymbol ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ bracketright, braceright, guillemotright, NoSymbol ] + }; + + // ASD... row + key { + type= "FOUR_LEVEL_ALPHABETIC", + symbols[Group1]= [ a, A, ae, AE ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ semicolon, colon, paragraph, NoSymbol ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ apostrophe, at, dead_acute, dead_caron ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ numbersign, asciitilde, dead_tilde, dead_breve ] + }; + + // ZXC... row + key { + type= "FOUR_LEVEL_SEMIALPHABETIC", + symbols[Group1]= [ c, C, copyright, cent ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ comma, less, dead_cedilla, dead_cedilla ] + }; + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ slash, question, questiondown, dead_abovedot ] + }; + + key { + type= "FOUR_LEVEL", + symbols[Group1]= [ space, space, nobreakspace, nobreakspace ] + }; + key { [ Control_L, Control_L ] }; +}; -- 2.43.0