|
2008-04-11
, 03:00
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#12
|
|
2008-04-11
, 20:50
|
Posts: 6 |
Thanked: 4 times |
Joined on Apr 2008
@ Vancouver, BC
|
#13
|
Thanks for the xautomation build!
I tried something similar (using mpc to control mpd, no need for xte), except I used dbus-scripts. dbus-scripts is probably the cleaner approach, as that lets one daemon handle multiple event definitions installed separately, but I have trouble with dbus-scripts in session mode. It repeatedly segfaults.
So I found that there is an equivalent signal on the system dbus, and am using that. But Xautomation will be very handy for some other stuff.
|
2008-04-11
, 22:24
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#14
|
|
2008-04-13
, 04:27
|
Posts: 6 |
Thanked: 4 times |
Joined on Apr 2008
@ Vancouver, BC
|
#15
|
|
2008-04-13
, 07:08
|
Posts: 6 |
Thanked: 4 times |
Joined on Apr 2008
@ Vancouver, BC
|
#16
|
I coded up the idea mentioned here - bind the button_press event to a script that runs xte. The built-in media player needs a carriage return to play/pause, but you could modify this to do just about anything.
I posted the python code here along with an archive containing the latest sources for XAutomation with compiled binaries. Or, if you prefer, a second post with just the files executables.