I have tried to find out how to set my media keys to work with Spotify on Xubuntu 14.04. I tried setting spotify as my default music player. I thought this would be a simple task, but I can't figure out a way to do this, and am not sure it will even work.
Here is the output for xev for my play/pause button (I don't know what any of this means but here you go:
KeyPress event, serial 37, synthetic NO, window 0x4600001,
root 0x497, subw 0x0, time 2164738, (756,-274), root:(1350,51),
state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x4600001,
root 0x497, subw 0x0, time 2164823, (756,-274), root:(1350,51),
state 0x0, keycode 172 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False