I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes.For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, synthetic NO, window 0x4a00001,    mode NotifyGrab, detail NotifyAncestorFocusIn event, serial 36, synthetic NO, window 0x4a00001,    mode NotifyUngrab, detail NotifyAncestorKeymapNotify event, serial 36, synthetic NO, window 0x0,    keys:  122 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0              0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   For Right Super key, xev and showkey give different keycodes -- 134 and 126 respectively.What's going on with these keycodes?I tried getting keycodes from showkey -k, and using xmodmap file below, but that gave a weird map which remapped b key:clear Mod1clear Controlkeycode 125 = Meta_Lkeycode 126 = Meta_Rkeycode 58 = Control_Lkeycode 56 = Control_Lkeycode 100 = Control_Radd Control = Control_L Control_Radd Mod1 = Meta_L Meta_R
How to get keycodes for xmodmap?
x11;keyboard;keyboard shortcuts;xmodmap;xkb