Place the .Xmodmap
in your home directory, then run xmodmap ~/.Xmodmap
to test the configuration.
For a persistent setup, load the file inside ~/.xinitrc
:
usermodmap=$HOME/.Xmodmap
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
- Caps-Lock + \ = æ
- Caps-Lock + ; = ø
- Caps-Lock + [ = å
- Caps-Lock + Shift + ; = Æ
- Caps-Lock + Shift + ; = Ø
- Caps-Lock + Shift + [ = Å