After running setxkbmap -print
I realized that pc
was included in the symbols list. That symbol file sets up the regular modifiers, which is not desired by me.
Before, I had added my own layout to the /usr/share/X11/xkb/symbols
directory and to the /usr/share/X11/xkb/rules/evdev.xml
file. That made my layout appear in the GUI to select keyboard layout.
A solution is to make a keyboard layout from scratch instead. One that does not include the pc
file. However, there are a lot of standard keyboard stuff in pc
that I need. So I read through that file top to bottom picking out the things I needed.
In short, creating a layout from scratch basically means:
- Copy the output of
setxkbmap -print
to a file. - That file just includes other files. Look through the list to see what you can reuse. For me, it meant replacing
pc
with the name of my own file. - Create new files if needed.
- Launch your new layout using
xkbcomp -I$HOME/additional-include-folder file-from-step-one
.
I learned this (in more detail) from this excellent guide: http://hack.org/mc/writings/xkb.html.