You are not logged in.
I'm trying to use a custom keymap. I got it set up in the virtual console with loadkeys, but I can't seem to get it to work in X. I'm following xmodmap to remap. I've created a mapping and stored it in `~/.Xmodmap`. When I run `xmodmap ~/.Xmodmap` (in X), it hangs for a few seconds and then loads the keymap correctly. However, I want it to load the keymap automatically when X loads.
The file, in my home directory:
-rw-r--r-- 1 joshsherick users 9886 Feb 18 20:53 .XmodmapAs suggested by the wiki page for the wiki page for xmodmap, I added a conditional run of xmodmap to my `~/.xinitrc`, so it looked like this:
if [ -s ~/.Xmodmap ]; then
xmodmap ~/.Xmodmap
fi
exec gnome-sessionAfter restarting X, I still had the default keymap. I ran `[sudo] test -s[f][e] ~/.Xmodmap` all of which returned 0, despite the file existing as shown above.
So then I changed my `~/.xinitrc` to:
xmodmap ~/.Xmodmap
exec gnome-sessionThe default keymap was still loaded when X was restarted, despite it being loaded correctly (after a ~3s lag) when running `xmodmap ~/.Xmodmap` in an X terminal once X has started.
I'm starting X with the `startx` command as the user joshsherick (who also owns the `~/.Xmodmap` file) and using gnome 3.
Does anyone know what could be happening?
Offline
I hear DEs have their own control over keysyms and will override xmodmap (just a guess). I did a quick search and came upon an old 2012 thread about a related issue to yours. Maybe look at either configuring gnome's keyboard setup
I am not sure if the content is still relevant as many things have changed since 2012 but thought it would be a good for brainstorming. Perhaps someone more knowledgable can provide more info about this. But in the mean time you can try other methods in mapping your keys.keymap archwiki shxkb
Offline
This worked for me:
https://bbs.archlinux.org/viewtopic.php … 8#p1194968
Offline