Announcement

Collapse
No announcement yet.

Xmodmap no longer loading at startup - Correct methods or Discussion?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Xmodmap no longer loading at startup - Correct methods or Discussion?

    I was using Xmodmap globally to enable my multimedia keys and swap a couple keys. I loaded it globally by having this line:

    [ -f /etc/X11/Xmodmap ] && xmodmap /etc/X11/Xmodmap

    inserted in /etc/X11/Xsession. Worked like a charm for years.

    FF to a few weeks ago: knocked a glass of wine into my 5 year old BTC keyboard and killed it
    :-X (alcohol abuse!)

    So I borrowed a Dell keyboard from work. Getting to the point (finally ) I noticed over the last couple of days my xmodmap definitions were not in place. Running xmodmap manually worked as expected.

    The changes I have made other than replacing the drunken keyboard and standard updates were I enabled Keyboard Layouts to enable the Compose key and to enable Crtl-Alt-Bkspc to restart X.

    I suspect this is the cause. I think (guessing) that Xsession loads xmodmap changes, then later on in boot or log-in the keyboard layout is enabled, thus wiping the xmodmap setting. Since I don't see multimedia or keycode swapping in keyboard layout, I likely need to continue using xmodmap.

    So, keeping in mind please that A) I know how to use rc.local or other workarounds and B) distributing .xmodmap to each individual user is fine for personal changes, but IMO global settings on a multiuser system should be set globally.

    Question: What is the currently "correct" method to load global xmodmap settings that will remain in effect with or without keyboard layouts?

    I think that installing yet another program is a poor answer but in these modern GUI times I may be stuck with that. I'm not above editing the keyboard definitions to achieve my goals.

    Please Read Me
Working...
X