#!/bin/csh -f # Try "xmodmap -pm" and "xmodmap -pk" to see what's what. # # Also, the "xev" program is # handy for showing what keypresses generate what keycodes. # (The xev program is part of the x "contrib" package which # comes standard on the mandrake distribution but may not # be installed by default; I installed it w/the software # manager). # # xev shows me: # # 61 (0x3d) = /? key # 62 (0x3e) = right shift key # 115 (0x73) = windows key (between left ctrl and alt) # Annoyingly, KDE is fighting with us and I can't seem # to disable that, so we'll just try to be last, and # hence have the final word: sleep 15 # First, turn the right shift key into /?: # Disable the right shift key as shift: xmodmap -e "remove Shift = Shift_R" # Remap it to /?: xmodmap -e "keycode 62 = slash question" # Second, turn the /? key into a shift key # (comment these out if you'd rather not): # Now remap /? to shift, and add it back: xmodmap -e "keycode 61 = Shift_R" xmodmap -e "add Shift = Shift_R" # Remap caps-lock to control: xmodmap -e "remove Lock = Caps_Lock" xmodmap -e "keycode 66 = Control_L" xmodmap -e "add control = Control_L" # Make the Windoze key a useable mod key: xmodmap -e "remove mod4 = F13" xmodmap -e "keycode 115 = Super_L" xmodmap -e "add mod4 = Super_L" # Disable the numlock key (too obnoxious when hit by accident): xmodmap -e "keycode 77 ="