Salut!
Mi-a venit o idee. Am modificat o mapare (ghana default) astfel incat
anumite taste sa trimita comenzi multimedia, pentru XMMS.
De exemplu, XF86AudioStop este mapat pe tastele multimedia de pe tastura
obisnuita, dar mai am o telecomanda, si in layoutul gh l-am pus pe tasta
's'.
Ideea era ca atunci cand nu sunt la calculator sa comut pe acest layout
si sa folosesc telecomanda.
Am activat maparile de tastatura din KDE, am pus US, RO si GH.
Cand comut pe GH, se emite codul XF86AStop, dar khotkeys nu reactioneaza
decat la cel de pe tastura, nu si la cel de pe telecomanda.
Mai jos este outputul de la xev. Prima data am apasat tasta 's' de pe
telecomanda, a doua oara (fara sa schimb layout-ul) de pe tastatura.
Aveti idee ce pot sa fac?
KeyPress event, serial 35, synthetic NO, window 0x3000001,
root 0x1ad, subw 0x0, time 159195456, (95,305), root:(1469,328),
state 0x4010, keycode 39 (keysym 0x1008ff15, XF86AudioStop),
same_screen YES,
XKeysymToKeycode returns keycode: 174
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic NO, window 0x3000001,
root 0x1ad, subw 0x0, time 159195656, (95,305), root:(1469,328),
state 0x4010, keycode 39 (keysym 0x1008ff15, XF86AudioStop),
same_screen YES,
XKeysymToKeycode returns keycode: 174
XLookupString gives 0 bytes:
XFilterEvent returns: False
/// de pe tastatura
FocusOut event, serial 35, synthetic NO, window 0x3000001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 35, synthetic NO, window 0x3000001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 35, synthetic NO, window 0x0,
keys: 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 64 0 0 0 0 0 0 0 0 0 0
KeyRelease event, serial 35, synthetic NO, window 0x3000001,
root 0x1ad, subw 0x0, time 159197501, (95,305), root:(1469,328),
state 0x4010, keycode 174 (keysym 0x1008ff15, XF86AudioStop),
same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Mersi!
--
ghrt AKA Amariutei Gheorghe
http://www.flickr.com/photos/15449635@N05/ ; buchipedia.wordpress.com
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug