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.

#"amixer -q set Master toggle"
"pactl set-sink-mute 0 toggle"
    m:0x0 + c:121

#"amixer -q set Master 2- unmute"
"pactl set-sink-volume 0 -- -5%"
    m:0x0 + c:122

#"amixer -q set Master 2+ unmute"
"pactl set-sink-volume 0 +5%"
    m:0x0 + c:123

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
Gijs Hillenius
Context for Digital Government

Policy specialist on open source in public services, knowlegde transfer expert