Actually, I've already fixed the problem mentioned in the subject, but I'd like to do more. I have tweaked xmodmap to remap the caps lock to Left_Shift and mouse middle button to Null, by creating the following ~/.Xmodmap file:
Now pressing CapsLock is the same as Shift, but Shift+CapsLock toggles the Caps Lock function.
Code: Select all
keycode 66 = Shift_L Caps_Lock NoSymbol NoSymbol pointer = 1 0 3 4 5 6 7 8 9 10 11 12 13 14 15 16
(Being a thumb-fingered typist and mouse wrangler, I never want the mouse middle click to be functional. When I'm scrolling through long documents, I keep accidentally pasting text. Or scrolling web pages, it returns to a previous page or HOME.)
I have a little startup script that invokes "xmodmap ~/.Xmodmap"
But I'd still like to make it Ctrl+CapsLock instead of Shift+CapsLock. The second column in xmodmap -pke is for "Shift+<key>". Which columns are for
Also it would be nice to be able to set special functions for combinations such as Ctrl-Alt, Ctrl-Super, Alt-Super, and Ctrl-Alt-Super (with or without Shift)
BTW I'm using a US standard keyboard. I reset xmodmap by "setxkbmap -layout us"