Thursday, April 19, 2007

xmodmap file

vishah@ubuntu:~$ pwd
/home/vishah
vishah@ubuntu:~$ cat .xmodmap
pointer = 1 8 3 4 5 6 7 2 9
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
add Lock = Caps_Lock

vishah@ubuntu:~$
I use this to swap Escape and CapsLock keys; easier than moving way up to reach Esc while using vim.Also it substitutes middle click button == 2 to a button on the side of the mouse == 8.

firing up 'xev' in a terminal first to see keysyms and keycodes for various keys.

No comments: