Raspian and Media-Keys

Do you have a Keyboard with Media-Keys connected to your Raspberry PI? So do I 🙂

I’ve added following lines to my ‚lxde-pi-rc.xml‘ File in ‚/home/pi/.config/openbox‘ in the keyboard-section:

<keybind key="XF86AudioRaiseVolume">
  <action name="Execute">
    <command>amixer set PCM 250+ unmute</command>
  </action>
</keybind>
<keybind key="XF86AudioLowerVolume">
  <action name="Execute">
    <command>amixer set PCM 250- unmute</command>
  </action>
</keybind>
<keybind key="XF86AudioMute">
  <action name="Execute">
    <command>amixer set PCM toggle</command>
  </action>
</keybind>

Works like a charm!

Schreibe einen Kommentar

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.