hi folks!
after spending hours on getting my logitech mx5000 desktop-set (mouse & keyboard) both working without deactivating the keyboards media-keys i finally got almost everything going (using feisty beta!) that i wanted, so thanks for all the hints that came along in the original howto as well as in many of the postings of the preceding 43 pages (that was a lot to read!).
in posting #368 user 'kobewan' recommended using 'xte' (can be found in the 'xautomation'-package) because it should handle keypress and releasevents better than 'xvfz'.
i don't doubt that this is correct but still have some problems getting things to work. what i try to do is to trigger my compiz-expose-plugin which currently is configured to use the key kombination of 'keydown Contol_L' + 'keydown Alt_L' + 'key Up' with mousebutton #10 of my logitech mx1000 bluetooth mouse. when using a keyboard, as soon as you release any of the still pressed 'Control_L' or 'Alt_L' keys, the expose-function will end.
so basically what kobewan posted sounds like it might be what i'm looking for, right? (... because some keys need to remain pressed for a while)
this is my current ~/.xbindkeysrc:
Code:
#button10 testing
"/usr/bin/xte 'keydown Control_L' 'keydown Alt_L' 'key Up' &"
b:10
# workaround for releasing btn10
".btn10rel.sh &"
b:10 + Release
as you can see, i call a script (that of couse i made executable already) called '.btn10rel.sh' which has the following content:
Code:
#!/bin/bash
#
/usr/bin/xte 'keyup Alt_L' 'keyup Control_L'
when i check button10 with 'xev' without haveing 'xbindkeys' running it seems to work fine because what i get is:
Code:
ButtonPress event, serial 28, synthetic NO, window 0x3000001,
root 0x52, subw 0x0, time 3558958910, (88,66), root:(100,140),
state 0x0, button 10, same_screen YES
ButtonRelease event, serial 28, synthetic NO, window 0x3000001,
root 0x52, subw 0x0, time 3558960073, (88,66), root:(100,140),
state 0x0, button 10, same_screen YES
now when i start 'xbindkeys' and run 'xev' again, this is what i get when pressing button10:
Code:
KeyPress event, serial 31, synthetic NO, window 0x3000001,
root 0x52, subw 0x0, time 3559859591, (130,123), root:(165,203),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 31, synthetic NO, window 0x3000001,
root 0x52, subw 0x0, time 3559859592, (130,123), root:(165,203),
state 0x4, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 31, synthetic NO, window 0x3000001,
mode NotifyGrab, detail NotifyAncestor
FocusOut event, serial 31, synthetic NO, window 0x3000001,
mode NotifyUngrab, detail NotifyPointer
FocusIn event, serial 31, synthetic NO, window 0x3000001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys: 1 0 0 0 32 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
and this when releasing it:
Code:
EnterNotify event, serial 31, synthetic NO, window 0x3000001,
root 0x52, subw 0x0, time 3559863870, (130,123), root:(165,203),
mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
focus YES, state 12
KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys: 82 0 0 0 32 0 0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
all that i can see from this is that 'Control_L' and 'Alt_L' seem to get (fake-)pressed correctly, but 'Up' or everything written to my script probably never gets (fake-)pressed which is exactly what i recognize on my desktop. what i mean is: when i press button10, nothing happens (since 'Up' seems to be missing), and after releasing button 10 'Control_L' and 'Alt_L' remain pressed until i manually press them.
the script is in my homedir, is this correct?
any ideas how to get this working?
Bookmarks