The i3 window manager and the Thinkpad T400s multimedia keys
Earlier, I wrote how to get the multimedia keys working on a Thinkpad T400s. That configuration file depended on using ALSA, but meanwhile Debian switched to PulseAudio, so the configuration needed updating.
#Mute
#"amixer -q set Master toggle"
"pactl set-sink-mute 0 toggle"
m:0x0 + c:121
XF86AudioMute
#LowerVolume
#"amixer -q set Master 2- unmute"
"pactl set-sink-volume 0 -- -5%"
m:0x0 + c:122
XF86AudioLowerVolume
#RaiseVolume
#"amixer -q set Master 2+ unmute"
"pactl set-sink-volume 0 +5%"
m:0x0 + c:123
XF86AudioRaiseVolume
Alternatively, when using the i3 tiling window manager, add these settings in ~/.i3/config
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5%
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -- -5%
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle