Hi all,

I know this might be seen as a little off-topic, but I would greatly appreciate any help, if someone has a better idea where to post it, then please recommend, I have already tried on imwheel's help page on sourceforge: https://sourceforge.net/forum/forum.php?forum_id=45152
but judging by the amount of activity on there, I am not hopeful!

So, on with the problem. I was using the excellent Tip#166 to switch the Caps Lock and Escape keys and it worked wonderfully. Then on Friday, I tried to install imwheel as non-root, don't know if this is possible, but I read the documentation and it didn't mention that it wasn't (incidentally, I was doing this following http://physics.ou.edu/~mcraven/mathmouse.html as a way of getting the mouse wheel to work properly in mathematica under Linux). Anyway I got complaints when trying to install it as it couldn't make the directory /etc/X11/imwheel as I cannot log in as root. So I gave up on that idea and as far as I was concerned had deleted anything to do with imwheel as I used its configure command to install under the prefix of my home directory. The problem is that now when I run the xmodmap ~/.speedswapper command that has worked up until now, the escape key behaves like Caps lock as intended, but the Caps lock key seems to be acting as both Caps lock AND escape, i.e. it will change me from insert to normal mode, but also turns on Caps lock! I am running KDE 3.3.2, Debian Sarge. The speedswapper file is as follows:

! Swap caps lock and escape, good for Vim
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock

the output of running xmodmap is:

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)

after I run xmodmap .speedswapper the output of xmodmap is:

xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x9)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)

Sorry, I'm sure the solution may be obvious to someone who knows anything about key mappings, but I don't :=^).

Any help is greatly appreciated
Many thanks,
Rob.

Reply via email to