Using xbindkeys to manage media buttons

More often that not, a keyboard will have extra functionality keys that you can bind to different operations.  Xbindkeys makes it easier to make each key perform a specific task.

First, run “xbindkeys -k” to determine the code for a key.  For example:

"Scheme Command"
m:0x0 + c:160

Then change the “Scheme Command” section to the command that you want to run when the key is pressed.   For example:

"amixer set Master 5%+"
m:0x0 + c:176

Place your newly created command in ~/.xbindkeysrc and add xbindkeys to your ~/.xinitrc.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: