~gagbo/cz-dotfiles

975472e9b40439a6d0154bbc2698fe9be8eac8ec — Gerry Agbobada 7 months ago 42aca5a
Fix plasma layouts
2 files changed, 57 insertions(+), 64 deletions(-)

M home/dot_config/plasma-workspace/env/setkeymap.sh
M home/dot_config/xkb/symbols/fr
M home/dot_config/plasma-workspace/env/setkeymap.sh => home/dot_config/plasma-workspace/env/setkeymap.sh +1 -1
@@ 3,5 3,5 @@ export XKB_LOG_VERBOSITY=10
export KWIN_XKB_DEFAULT_KEYMAP=yes
export XKB_DEFAULT_LAYOUT=fr,fr,us
export XKB_DEFAULT_VARIANT=optimot_cinq_ergo,ergol_six,altgr-intl
export XKB_DEFAULT_OPTIONS=grp:ctrls_toggle,shift:both_capslock,caps:swapescape
export XKB_DEFAULT_OPTIONS=grp:ctrls_toggle,ctrl:nocaps,shift:both_capslock
export XKB_CONTEXT_NO_SECURE_GETENV=yes

M home/dot_config/xkb/symbols/fr => home/dot_config/xkb/symbols/fr +56 -63
@@ 1,7 1,7 @@
partial alphanumeric_keys modifier_keys
xkb_symbols "optimot_cinq_ergo" {

	name[Group1]= "France - Optimot Ergo 1.5";
	name[Group1]= "French (Optimot Ergo 1.5)";

    include "fr(basic)"
	include "pc(pc105)"


@@ 97,7 97,7 @@ xkb_symbols "optimot_cinq_ergo" {

partial alphanumeric_keys modifier_keys
xkb_symbols "ergol_six" {
  include "pc"
	include "pc(pc105)"

  // The “OneDeadKey” is an ISO_Level3_Latch, i.e. a “dead AltGr” key.
  // This is the only way to have a multi-purpose dead key with XKB.


@@ 107,82 107,75 @@ xkb_symbols "ergol_six" {
  // with xkbcomp, so let’s use two groups instead and make the AltGr key a
  // group selector.

  // _However_ however, this is Wayland, so we try
	include "level5(ralt_switch)"

  name[group1]= "French (Ergo-L 0.6)";
  name[group2]= "AltGr";

  key.type[group1] = "FOUR_LEVEL";
  key.type[group2] = "TWO_LEVEL";
  key.type[group1] = "EIGHT_LEVEL";

  // Digits
  key <AE01> {[ U2503           , U2503           , 1               , exclam          ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ 1 !
  key <AE02> {[ vertconnector   , vertconnector   , 2               , at              ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 2 @
  key <AE03> {[ vertconnector   , vertconnector   , 3               , numbersign      ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 3 #
  key <AE04> {[ vertconnector   , vertconnector   , 4               , dollar          ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 4 $
  key <AE05> {[ vertconnector   , vertconnector   , 5               , percent         ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 5 %
  key <AE06> {[ U2503           , U2503           , 6               , asciicircum     ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ 6 ^
  key <AE07> {[ vertconnector   , vertconnector   , 7               , ampersand       ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 7 &
  key <AE08> {[ vertconnector   , vertconnector   , 8               , asterisk        ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 8 *
  key <AE09> {[ vertconnector   , vertconnector   , 9               , parenleft       ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 9 (
  key <AE10> {[ vertconnector   , vertconnector   , 0               , parenright      ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ 0 )
  key <AE01> {[ 1               , exclam          , notsign         , U201E           , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 1 ! ¬ „
  key <AE02> {[ 2               , at              , guillemotleft   , U201C           , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 2 @ « “
  key <AE03> {[ 3               , numbersign      , guillemotright  , U201D           , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 3 # » ”
  key <AE04> {[ 4               , dollar          , sterling        , cent            , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 4 $ £ ¢
  key <AE05> {[ 5               , percent         , EuroSign        , U2030           , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 5 % € ‰
  key <AE06> {[ 6               , asciicircum     , yen             , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 6 ^ ¥
  key <AE07> {[ 7               , ampersand       , currency        , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 7 & ¤
  key <AE08> {[ 8               , asterisk        , section         , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 8 * §
  key <AE09> {[ 9               , parenleft       , paragraph       , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 9 ( ¶
  key <AE10> {[ 0               , parenright      , degree          , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // 0 ) °

  // Letters, first row
  key <AD01> {[ U2503           , U2503           , VoidSymbol      , Q               ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃   Q
  key <AD02> {[ vertconnector   , vertconnector   , VoidSymbol      , C               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   C
  key <AD03> {[ vertconnector   , vertconnector   , VoidSymbol      , O               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   O
  key <AD04> {[ vertconnector   , vertconnector   , VoidSymbol      , P               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   P
  key <AD05> {[ vertconnector   , vertconnector   , VoidSymbol      , W               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   W
  key <AD06> {[ U2503           , U2503           , VoidSymbol      , J               ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃   J
  key <AD07> {[ vertconnector   , vertconnector   , VoidSymbol      , M               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   M
  key <AD08> {[ vertconnector   , vertconnector   , VoidSymbol      , D               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   D
  key <AD09> {[ vertconnector   , vertconnector   , ISO_Level3_Latch, dead_diaeresis  ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ ' ¨
  key <AD10> {[ vertconnector   , vertconnector   , VoidSymbol      , F               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   F
  key <AD01> {[ q               , Q               , ae              , AE              , 1               , VoidSymbol      , VoidSymbol, VoidSymbol]}; // q Q æ Æ 1
  key <AD02> {[ c               , C               , ccedilla        , Ccedilla        , bracketleft     , VoidSymbol      , VoidSymbol, VoidSymbol]}; // c C ç Ç [
  key <AD03> {[ o               , O               , oe              , OE              , bracketright    , VoidSymbol      , VoidSymbol, VoidSymbol]}; // o O œ Œ ]
  key <AD04> {[ p               , P               , ocircumflex     , Ocircumflex     , dollar          , VoidSymbol      , VoidSymbol, VoidSymbol]}; // p P ô Ô $
  key <AD05> {[ w               , W               , VoidSymbol      , VoidSymbol      , percent         , U2030           , VoidSymbol, VoidSymbol]}; // w W     % ‰
  key <AD06> {[ j               , J               , VoidSymbol      , VoidSymbol      , asciicircum     , dead_circumflex , VoidSymbol, VoidSymbol]}; // j J     ^ ^
  key <AD07> {[ m               , M               , mu              , VoidSymbol      , ampersand       , VoidSymbol      , VoidSymbol, VoidSymbol]}; // m M µ   &
  key <AD08> {[ d               , D               , VoidSymbol      , VoidSymbol      , asterisk        , multiply        , VoidSymbol, VoidSymbol]}; // d D     * ×
  key <AD09> {[ ISO_Level3_Latch, dead_diaeresis  , grave           , VoidSymbol      , apostrophe      , dead_acute      , VoidSymbol, VoidSymbol]}; // ` ¨ `   ' ´
  key <AD10> {[ f               , F               , VoidSymbol      , VoidSymbol      , 0               , VoidSymbol      , VoidSymbol, VoidSymbol]}; // f F     0

  // Letters, second row
  key <AC01> {[ U2503           , U2503           , VoidSymbol      , A               ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃   A
  key <AC02> {[ vertconnector   , vertconnector   , VoidSymbol      , S               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   S
  key <AC03> {[ vertconnector   , vertconnector   , VoidSymbol      , E               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   E
  key <AC04> {[ vertconnector   , vertconnector   , VoidSymbol      , N               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   N
  key <AC05> {[ vertconnector   , vertconnector   , comma           , semicolon       ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ , ;
  key <AC06> {[ U2503           , U2503           , VoidSymbol      , L               ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃   L
  key <AC07> {[ vertconnector   , vertconnector   , VoidSymbol      , R               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   R
  key <AC08> {[ vertconnector   , vertconnector   , VoidSymbol      , T               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   T
  key <AC09> {[ vertconnector   , vertconnector   , VoidSymbol      , I               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   I
  key <AC10> {[ vertconnector   , vertconnector   , VoidSymbol      , U               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   U
  key <AC01> {[ a               , A               , agrave          , Agrave          , braceleft       , VoidSymbol      , VoidSymbol, VoidSymbol]}; // a A à À {
  key <AC02> {[ s               , S               , eacute          , Eacute          , parenleft       , U207D           , VoidSymbol, VoidSymbol]}; // s S é É ( ⁽
  key <AC03> {[ e               , E               , egrave          , Egrave          , parenright      , U207E           , VoidSymbol, VoidSymbol]}; // e E è È ) ⁾
  key <AC04> {[ n               , N               , ecircumflex     , Ecircumflex     , braceright      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // n N ê Ê }
  key <AC05> {[ comma           , semicolon       , periodcentered  , U2022           , equal           , notequal        , VoidSymbol, VoidSymbol]}; // , ; · • = ≠
  key <AC06> {[ l               , L               , VoidSymbol      , VoidSymbol      , plus            , plusminus       , VoidSymbol, VoidSymbol]}; // l L     + ±
  key <AC07> {[ r               , R               , VoidSymbol      , VoidSymbol      , minus           , emdash          , VoidSymbol, VoidSymbol]}; // r R     - —
  key <AC08> {[ t               , T               , icircumflex     , Icircumflex     , less            , lessthanequal   , VoidSymbol, VoidSymbol]}; // t T î Î < ≤
  key <AC09> {[ i               , I               , ucircumflex     , Ucircumflex     , greater         , greaterthanequal, VoidSymbol, VoidSymbol]}; // i I û Û > ≥
  key <AC10> {[ u               , U               , ugrave          , Ugrave          , quotedbl        , dead_diaeresis  , VoidSymbol, VoidSymbol]}; // u U ù Ù " ¨

  // Letters, third row
  key <AB01> {[ U2503           , U2503           , VoidSymbol      , Z               ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃   Z
  key <AB02> {[ vertconnector   , vertconnector   , VoidSymbol      , X               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   X
  key <AB03> {[ vertconnector   , vertconnector   , minus           , question        ],[ VoidSymbol      , VoidSymbol      ]}; // │ │ - ?
  key <AB04> {[ vertconnector   , vertconnector   , VoidSymbol      , V               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   V
  key <AB05> {[ vertconnector   , vertconnector   , VoidSymbol      , B               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   B
  key <AB06> {[ U2503           , U2503           , period          , colon           ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ . :
  key <AB07> {[ vertconnector   , vertconnector   , VoidSymbol      , H               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   H
  key <AB08> {[ vertconnector   , vertconnector   , VoidSymbol      , G               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   G
  key <AB09> {[ vertconnector   , vertconnector   , VoidSymbol      , Y               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   Y
  key <AB10> {[ vertconnector   , vertconnector   , VoidSymbol      , K               ],[ VoidSymbol      , VoidSymbol      ]}; // │ │   K
  key <AB01> {[ z               , Z               , acircumflex     , Acircumflex     , asciitilde      , dead_tilde      , VoidSymbol, VoidSymbol]}; // z Z â Â ~ ~
  key <AB02> {[ x               , X               , ssharp          , U1E9E           , grave           , dead_grave      , VoidSymbol, VoidSymbol]}; // x X ß ẞ ` `
  key <AB03> {[ minus           , question        , emdash          , VoidSymbol      , bar             , brokenbar       , VoidSymbol, VoidSymbol]}; // - ? —   | ¦
  key <AB04> {[ v               , V               , ubreve          , Ubreve          , underscore      , endash          , VoidSymbol, VoidSymbol]}; // v V ŭ Ŭ _ –
  key <AB05> {[ b               , B               , VoidSymbol      , VoidSymbol      , slash           , division        , VoidSymbol, VoidSymbol]}; // b B     / ÷
  key <AB06> {[ period          , colon           , ellipsis        , VoidSymbol      , backslash       , VoidSymbol      , VoidSymbol, VoidSymbol]}; // . : …   backslash
  key <AB07> {[ h               , H               , VoidSymbol      , VoidSymbol      , at              , VoidSymbol      , VoidSymbol, VoidSymbol]}; // h H     @
  key <AB08> {[ g               , G               , VoidSymbol      , VoidSymbol      , numbersign      , dead_cedilla    , VoidSymbol, VoidSymbol]}; // g G     # ¸
  key <AB09> {[ y               , Y               , VoidSymbol      , VoidSymbol      , exclam          , notsign         , VoidSymbol, VoidSymbol]}; // y Y     ! ¬
  key <AB10> {[ k               , K               , VoidSymbol      , VoidSymbol      , question        , VoidSymbol      , VoidSymbol, VoidSymbol]}; // k K     ?

  // Pinky keys
  key <AE11> {[ U2503           , U2503           , slash           , underscore      ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ / _
  key <AE12> {[ U2506           , U2506           , equal           , plus            ],[ VoidSymbol      , VoidSymbol      ]}; // ┆ ┆ = +
  key <AE13> {[ VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      ],[ VoidSymbol      , VoidSymbol      ]}; //
  key <AD11> {[ U2503           , U2503           , bracketleft     , braceleft       ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ [ {
  key <AD12> {[ U2506           , U2506           , bracketright    , braceright      ],[ VoidSymbol      , VoidSymbol      ]}; // ┆ ┆ ] }
  key <AC11> {[ U2503           , U2503           , apostrophe      , quotedbl        ],[ VoidSymbol      , VoidSymbol      ]}; // ┃ ┃ ' "
  key <AB11> {[ VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      ],[ VoidSymbol      , VoidSymbol      ]}; //
  key <TLDE> {[ U2506           , U2506           , grave           , asciitilde      ],[ VoidSymbol      , VoidSymbol      ]}; // ┆ ┆ ` ~
  key <BKSL> {[ U2506           , U2506           , backslash       , bar             ],[ VoidSymbol      , VoidSymbol      ]}; // ┆ ┆ \ |
  key <LSGT> {[ U2506           , U2506           , less            , greater         ],[ VoidSymbol      , VoidSymbol      ]}; // ┆ ┆ < >
  key <AE11> {[ slash           , underscore      , division        , endash          , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // / _ ÷ –
  key <AE12> {[ equal           , plus            , notequal        , plusminus       , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // = + ≠ ±
  key <AE13> {[ VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; //
  key <AD11> {[ bracketleft     , braceleft       , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // [ {
  key <AD12> {[ bracketright    , braceright      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // ] }
  key <AC11> {[ apostrophe      , quotedbl        , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // ' "
  key <AB11> {[ VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; //
  key <TLDE> {[ grave           , asciitilde      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // ` ~
  key <BKSL> {[ backslash       , bar             , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // \ |
  key <LSGT> {[ less            , greater         , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol      , VoidSymbol, VoidSymbol]}; // < >

  // Space bar
  key <SPCE> {[ space           , U202F           , U2019           , U2019           ],[ space           , nobreakspace    ]}; //     ’ ’

  // AltGr
  // Note: the `ISO_Level5_Latch` here is meaningless but helps with Chromium.
  key <RALT> {
    type = "TWO_LEVEL",
    symbols = [ ISO_Level5_Latch, ISO_Level5_Latch ],
    actions = [ SetGroup(group=2), SetGroup(group=2) ]
  };
};

// vim: ft=xkb:fdm=indent:ts=2:nowrap