I'm trying to remap PrtSc key to Insert (to use it in vim), with /usr/bin/xmodmap -e "keycode XXX = Insert"
for it, I need to figure out what keycode for PrtSc is.
I'm doing xev -event keyboard
and pressing PrtSc, but getting something strange
KeymapNotify event, serial 28, synthetic NO, window 0x0,
keys: 4294967228 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
Not sure not extract the keycode from this information.
xev
, you'll have to kill xorg to get the keycode and even then I'm not sure it will work. I also haven't found an efficient way of killing xorg that would enable me to catch the keycode.