Why is the evdev file in / usr / share / X 11 / xkb / rules not the same as evdev.lst?

it seems that some of the setxkbmap options that are listed in evdev.lst are not actually supported by the accompanying evdev file. For example, ctrl: nocaps is supported, but ctrl: swap_lalt_lctl is not, as evidenced by

$ grep 'ctrl:nocaps' /usr/share/X11/xkb/rules/evdev{,.lst}
/usr/share/X11/xkb/rules/evdev:  ctrl:nocaps        =   +ctrl(nocaps)
/usr/share/X11/xkb/rules/evdev.lst:  ctrl:nocaps          Caps Lock as Ctrl
$ grep 'ctrl:swap_lalt_lctl_lwin' /usr/share/X11/xkb/rules/evdev{,.lst} 
/usr/share/X11/xkb/rules/evdev.lst:  ctrl:swap_lalt_lctl_lwin Left Alt as Ctrl, Left Ctrl as Win, Left Win as Alt
$

      

This causes me to be unable to use the missing parameters as described in the previous question Why are some setxkbmap parameters being ignored? As a bonus question, is there a way I can get these missing parameters to be maintained?

+3


source to share


1 answer


I am experiencing the same problem and will be happy to find an answer to this question.

I'm running recent Debian Jessie with GNOME v3.14.1 on a Macbook 5.2 (early 2009) - all other keywords I've tested so far seem to work. I have a guess for a reason:

IN

"gnome-tweak-tools > Typing > Alt/Win key behaviour"

      

only this option exists "Ctrl is mapped to Win **keys** (And the Ctrl keys)"

- maybe it is related to a problem because I am reading somewhere where GNOME overrides other key mapping options ... I tried to add key bindings in dconf-editor; also - doesn't work.

EDIT: I found a workaround for this: Superuser Xmodmap Workaround

This is copy and paste followed by the command



# xmodmap /path/to/yoursavedfile

But note that as soon as you change any keyboard-related settings in GNOME, such as shortcuts or other keyboard shortcuts, this will override this and you will have to re-run this command. It works instantly without reinstalling / rebooting for me. Don't know if this will continue on next boot - I'll let you know here if it doesn't!

EDIT2: After rebooting and resuming, GNOME overrides keyboard settings using xmodmap.

EDIT3: I found a way to make the keyboard mapping persistent after reboot, resume and login, using this python script as an auto-start script: xmodmap-reload-script found here

creating a new .desktop file in ~ / .config / autostart inspired by this debian template run python script on startup

[Desktop Entry] 
Type=Application
Exec=python /path/to/your/application.py arguments

      

0


source







All Articles