LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to assign a different command to my headphone's button? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-assign-a-different-command-to-my-headphones-button-856149/)

QueenZ 01-13-2011 02:46 PM

How to assign a different command to my headphone's button?
 
OK, so I bought a Media-Teach NEMESIS USB headphones. They work really great except there's this one button that lunches Windows Media Player on Windows but on Linux... it doesn't seem to do anything...

So my question is, how do I assign a different task for this button on Linux? For example I want it to go to a website address.

I guess I need to get what signal it sends thru usb to my system and then somehow manipulate it? Can this be done with a shell script or perhaps there's a tool/program available on Linux for this?

Please help! Thanks!

QueenZ 01-13-2011 02:53 PM

Xev showed me this output

Quote:

KeyRelease event, serial 37, synthetic NO, window 0x5600001,
root 0xfe, subw 0x0, time 13567370, (-388,432), root:(272,487),
state 0x10, keycode 179 (keysym 0x1008ff81, XF86Tools), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
so keycode 179 i guess but now how do i assign a task to it..?

QueenZ 01-13-2011 04:26 PM

OK, I had to write my own script. :) I made a blog post as well...

http://www.queenzsoftware.com/linuxblog/?p=131


All times are GMT -5. The time now is 10:58 AM.