Remove XF86Back / XF86Forward from special key on T61
The keys above left and right cursor keys are quite annoying on a T61 – they allow forward and backward switching of e.b. web pages. But usually they get pressed unintentionally… (OK, denpends on the fingers …)
Find out which keycodes they have:
start xev and press the keys:
KeyPress event, serial 30, synthetic NO, window 0x4e00001, root 0x11c, subw 0x0, time 5179230, (381,260), root:(397,381), state 0x0, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x4e00001, root 0x11c, subw 0x0, time 5179478, (381,260), root:(397,381), state 0x0, keycode 166 (keysym 0x1008ff26, XF86Back), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 33, synthetic NO, window 0x4e00001, root 0x11c, subw 0x0, time 5182094, (381,260), root:(397,381), state 0x0, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x4e00001, root 0x11c, subw 0x0, time 5182302, (381,260), root:(397,381), state 0x0, keycode 167 (keysym 0x1008ff27, XF86Forward), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False
Then create a ~/.Xmodmap file to map both keys to the non existing F19 / F29 keys:
keycode 166 = F19 keycode 167 = F20
Use xmodmap to apply changes:
xmodmap ~/.Xmodmap