20081111

identificar teclas xev

xev es un programa (viene en el paquete x11-utils) que nos permite monitorizar los eventos que ocurren en nuestro sistema gráfico.
Si movemos el ratón o presionamos una tecla nos regresa como es interpretado por X.

windows
KeyRelease event, serial 32, synthetic NO, window 0x5800001,
root 0x53, subw 0x0, time 169107828, (35,221), root:(519,267),
state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


Punto
KeyRelease event, serial 32, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 111760512, (226,71), root:(595,393),
state 0x0, keycode 60 (keysym 0x2e, period), same_screen YES,
XLookupString gives 1 bytes: (2e) "."
XFilterEvent returns: False


Tabulador
KeyRelease event, serial 32, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 111762984, (226,71), root:(595,393),
state 0x0, keycode 23 (keysym 0xff09, Tab), same_screen YES,
XLookupString gives 1 bytes: (09) " "
XFilterEvent returns: False


Disminuir volumen
KeyRelease event, serial 29, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 112005797, (378,-17), root:(770,328),
state 0x0, keycode 174 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


Aumentar volumen
KeyPress event, serial 32, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 112007206, (378,-17), root:(770,328),
state 0x0, keycode 176 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False


Quitar sonido
KeyRelease event, serial 32, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 112007847, (378,-17), root:(770,328),
state 0x0, keycode 160 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False


Menu
KeyPress event, serial 32, synthetic NO, window 0x5a00001,
root 0x53, subw 0x0, time 112012636, (169,-13), root:(561,332),
state 0x0, keycode 117 (keysym 0xff67, Menu), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

No hay comentarios: