Edit: I guess you were probably doing that while I was typing this...
]]>If you want to test given settings, there is the xkbcomp commmand. Here have a look at this for more info.
]]>I think he meant /usr/share/X11/xkb/rules/base.lst. It's provided by xkeyboard-config package.
This ^^^
]]>If you are looking for something that doesn't require xmodmap, I am pretty certain this functionality can be handles by xkb itself.
Peruse the file /usr/share/X11/xkb/base.lst. In it there are a whole shit load of options. Find the one you need, and then you can set it globally on X start with /etc/X11/xorg.conf.d/10-evdev.conf. For example, I hate the caps lock with a passion, and I use the windows key as my window manager's mod key. So I have this:
cat /etc/X11/xorg.conf.d/10-evdev.conf
...
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbOptions" "caps:super"
EndSection
...This is of course assuming that you configure your devices with evdev.
I don't seem to have a /usr/share/X11/xkb/base.lst file, could you post yours so I can see the options? I tried the option "control:super" but that didn't work. Thanks!
]]>SLiM reads the local ~/.xinitrc configuration and then launches the desktop according to what is in that file.
Peruse the file /usr/share/X11/xkb/base.lst. In it there are a whole shit load of options. Find the one you need, and then you can set it globally on X start with /etc/X11/xorg.conf.d/10-evdev.conf. For example, I hate the caps lock with a passion, and I use the windows key as my window manager's mod key. So I have this:
cat /etc/X11/xorg.conf.d/10-evdev.conf
...
Section "InputClass"
Identifier "evdev keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "XkbOptions" "caps:super"
EndSection
...
This is of course assuming that you configure your devices with evdev.
]]> xmodmap /home/chris/.xmodmaprc
works from the terminal, why does it seem to be ignored in the startup script?
]]>#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
exec gnome-session-cinnamon
xmodmap /home/chris/xmodmaprc
I use Slim login manager so starting X is done through that.
]]>Post your ~.xinitrc.
How are you starting X? Do you run 'startx'?