LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-13-2011, 01:46 PM   #1
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373
Blog Entries: 2

Rep: Reputation: 32
Question 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!
 
Old 01-13-2011, 01:53 PM   #2
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373

Original Poster
Blog Entries: 2

Rep: Reputation: 32
Xev showed me this output

Quote:
KeyRelease event, serial 37, synthetic NO, window 0x5600001,
root 0xfe, subw 0x0, time 13567370, (-388,432), root272,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..?

Last edited by QueenZ; 01-13-2011 at 01:55 PM.
 
Old 01-13-2011, 03:26 PM   #3
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373

Original Poster
Blog Entries: 2

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

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu - Optical mouse assign backspace to wheel button brizboy Linux - Newbie 3 04-25-2010 11:50 PM
Linux command to assign an ip address seb22 LinuxQuestions.org Member Intro 2 06-12-2005 02:19 AM
Linux command to assign an ip address seb22 Linux - Networking 5 05-24-2005 12:03 PM
Assign command output to a varible. wilku Linux - Newbie 3 03-26-2005 11:56 AM
How to assign functions to 5 button mice? linuXBOX Linux - Hardware 3 07-29-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration