How to get the multimedia keys working on a Thinkpad T400s

A 4 line mini howto “get the multimedia keys working on a Thinkpad T400s”. This laptop is running Debian Sid, yet this will work for other distro’s too.

The only Debian and variants specific line is:

apt-get install xbindkeys xbindkeys-config

The rest should be the same for all distro’s.

Create the file .xbindkeysrc containing:

#Mute
"amixer -q set Master toggle"
m:0x0 + c:121
XF86AudioMute

#LowerVolume
"amixer -q set Master 2- unmute"
m:0x0 + c:122
XF86AudioLowerVolume

#RaiseVolume
"amixer -q set Master 2+ unmute"
m:0x0 + c:123
XF86AudioRaiseVolume