Extend PointerEnable moved

* ANSI users don't have the LSGT key, so...
* the PointerEnable Extend mapping was moved to TLDE.
* It toggles MouseKeys on/off.
This commit is contained in:
DreymaR 2020-10-12 08:53:39 +02:00
parent e26d67376f
commit 6ec697f5c5
2 changed files with 26 additions and 14 deletions

View File

@ -28,4 +28,13 @@ There are plenty of explanations and further links in there, as well as links to
Happy XKB hacking!
DreymaR, 2018-08
TODO:
-----
* Migrate from `~/.bashrc` to `~/.xprofile`? The latter is more appropriate, but which setups source it and which ones don't?
* Note: It may be necessary to select "Use system defaults" if you have changed anything in the OS GUI layout settings.
* The Curl(DH) model implementation may have to go as it may mess w/ QWERTY, and instead I should use two Extend variants?
* Could use an <EXT> key code alias defined in keycodes/evdev (alias <EXT> = <CAPS>), instead of the <CAPS> code?
* Choose another default layout for the setxkb.sh script than Norwegian! But which one? I want to diffferentiate between the US locale and the US variant (Universal Symbols).
[XKBdat]: https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/xkb-data_2.23.1-1ubuntu1_all.deb.html (xkb-data download page)

View File

@ -11,8 +11,8 @@
// | | Pause | Rew | Fwd | Eject | Refr | Bri- | Bri+ | Sleep | WWW | Mail | App1 | App2 |
// | Caps | Play | Prev | Next | Stop | Mute | Vol- | Vol+ | Media | Home | Srch | File | Calc |
// +=======+=======+=======+=======+=======+=======+=======+=======+=======+=======+=======+=======+=======+
// |` €€€ |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |
// | Cust | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
// |` *** |1 |2 |3 |4 |5 |6 |7 |8 |9 |0 |- |= |
// | *MOn | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// |Tab |Q €€€ |W *** |F <<> |P <>> |G *** |J ### |L ### |U ### |Y ### |; €€€ |[ €€€ |] €€€ |
// | | Esc | *WhUp | BrBck | BrFwd | *MUp | PgUp | Home | Up | End | Del | Esc | Ins |
@ -20,15 +20,15 @@
// |Caps+ |A +++ |R *** |S +++ |T +++ |D *** |H ### |N ### |E ### |I ### |O €€€ |' €€€ |\ ><> |
// | ++++ | Alt | *WhDn | Shift | Ctrl | *MDn | PgDn | Left | Down | Right | Back | Menu | BrFav |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// |_ *** |Z €€€ |X === |C === |V === |B *** |K *** |M *** |, *** |. *** |/ €€€ |Spc € |Entr€ |
// | *MOn | Undo | Cut | Copy | Paste | *Bt1 | *Bt2 | *Bt3 | *MLe | *MRi | Multi | Enter | PrtSc |
// |_ €€€ |Z €€€ |X === |C === |V === |B *** |K *** |M *** |, *** |. *** |/ €€€ |Spc € |Entr€ |
// | Cust | Undo | Cut | Copy | Paste | *Bt1 | *Bt2 | *Bt3 | *MLe | *MRi | Multi | Enter | PrtSc |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// Legend: # Movement; + Modifiers; = GUI edit; * Mouse; <> MultiMedia; € Various commands.
//
// KeyPad overlay with nav block to the left (lv7-8):
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// |` €€€ |1 |2 |3 |4 £ |5 € |6 |7 ⇖ |8 ⇑ |9 ⇗ |0 |- |= |
// | Cust | ! | @ | # | $ | % | ^ | KP_7 | KP_8 | KP_9 | KP_* | KP_- | KP_= |
// |` *** |1 |2 |3 |4 £ |5 € |6 |7 ⇖ |8 ⇑ |9 ⇗ |0 |- |= |
// | *MOn | ! | @ | # | $ | % | ^ | KP_7 | KP_8 | KP_9 | KP_* | KP_- | KP_= |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// |Tab |Q ### |W ### |F ### |P €€€ |G €€€ |J ### |L ⇐ |U ⇔ |Y ⇒ |; |[ { |] } |
// | | Home | Up | End | Del | Esc | PgUp | KP_4 | KP_5 | KP_6 | KP_+ | ( | ) |
@ -36,8 +36,8 @@
// |Caps+ |A ### |R ### |S ### |T €€€ |D |H ### |N ⇙ |E ⇓ |I ⇘ |O |' " |\ | |
// | ++++ | Left | Down | Right | Back | K_Lck | PgDn | KP_1 | KP_2 | KP_3 | K_Ent | ' | : |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
// |_ *** |Z €€€ |X === |C === |V === |B *** |K |M |, ⇕ |. |/ |Spc |Entr |
// | *MOn | Undo | Cut | Copy | Paste | *Bt1 | , | KP_0 | KP_0 | KP_. | KP_/ | Spc | K_Ent |
// |_ €€€ |Z €€€ |X === |C === |V === |B *** |K |M |, ⇕ |. |/ |Spc |Entr |
// | Cust | Undo | Cut | Copy | Paste | *Bt1 | , | KP_0 | KP_0 | KP_. | KP_/ | Spc | K_Ent |
// +-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+-------+
//
// NOTE: A lv7 (Level5+Level3) modifier might be necessary to use the KeyPad level sensibly
@ -52,6 +52,8 @@
// TODO: A lv7 modifier to reach the second Extend layer directly.
// Test out this:
// key <RCTL> { [ ISO_Level5_Shift ], actions[Group1] = [ SetMods(mods=LevelThree+LevelFive) ] };
//
// NOTE: The Big Bag image has the PointerEnable key on LSGT, but ANSI users don't have it. Moved it to TLDE.
default partial
xkb_symbols "basic" {
@ -142,10 +144,8 @@ xkb_symbols "lv5" {
}; // F12
key <TLDE> { symbols[Group1]=[ NoSymbol , NoSymbol , NoSymbol , NoSymbol ,
Delete , Delete , Delete , Delete ], // Del
actions[Group1]=[NoAction(),NoAction(),NoAction(),NoAction(),
Redirect(key=<DELE>) , Redirect(key=<DELE>) , // <DELE>
Redirect(key=<DELE>) , Redirect(key=<DELE>) ] // <DELE>
Pointer_EnableKeys , Pointer_EnableKeys , // Ptr_On
Pointer_EnableKeys , Pointer_EnableKeys ] // (Enable MouseKeys)
}; // ` ~
key <AE01> { symbols[Group1]=[ NoSymbol , NoSymbol , NoSymbol , NoSymbol ,
F1 , F1 , exclam , exclam ], // !
@ -392,8 +392,11 @@ xkb_symbols "lv5" {
}; // ' "
key <LSGT> { symbols[Group1]=[ NoSymbol , NoSymbol , NoSymbol , NoSymbol ,
Pointer_EnableKeys , Pointer_EnableKeys , // Ptr_On
Pointer_EnableKeys , Pointer_EnableKeys ] // (Enable MouseKeys)
Delete , Delete , // User customizeable key (Del for now)
Delete , Delete , // --"--
actions[Group1]=[NoAction(),NoAction(),NoAction(),NoAction(),
Redirect(key=<DELE>) , Redirect(key=<DELE>) , // <DELE>
Redirect(key=<DELE>) , Redirect(key=<DELE>) ] // <DELE>
}; // < >
key <AB01> { symbols[Group1]=[ NoSymbol , NoSymbol , NoSymbol , NoSymbol ,
Undo , Redo , // Undo/Redo