L4T-Megascript icon indicating copy to clipboard operation
L4T-Megascript copied to clipboard

Enable volume buttons in openbox

Open RhythmLunatic opened this issue 3 years ago • 1 comments

It's not really a perfect solution, but it works.

git clone https://github.com/graysky2/pulseaudio-ctl
cd pulseaudio-ctl
make install-bin

then /etc/xdg/openbox/rc.xml has to be copied to ~/.config/openbox/rc.xml and the following values have to be added in the keyboard section.

  <!-- volume buttons -->
  
<keybind key="XF86AudioRaiseVolume">
  <action name="Execute">
    <execute>pulseaudio-ctl up 10</execute>
  </action>
</keybind>
<keybind key="XF86AudioLowerVolume">
  <action name="Execute">
    <execute>pulseaudio-ctl down 10</execute>
  </action>
</keybind>

I will leave this as an issue since I don't know how to automatically add it, and openbox by default does not support volume buttons.

RhythmLunatic avatar Jun 21 '22 01:06 RhythmLunatic

If you want to take a crack at implementing this yourself in a PR, an example of automatically creating files can be found here: https://github.com/cobalt2727/L4T-Megascript/blob/0bebf7e83089abb33c4338b1958c614b58eccf7e/scripts/custom-theme-toolbox.sh#L68

cobalt2727 avatar Jun 24 '22 14:06 cobalt2727

This probably works, but for some reason openbox doesn't show up in the login screen. Maybe it's a bug with openbox? I'm pretty sure installing it is supposed to put it in /usr/share/xsessions/

RhythmLunatic avatar Jun 05 '23 22:06 RhythmLunatic

I was able to confirm that this works by manually making an openbox xsession. I'm not sure why it didn't make it automatically.

RhythmLunatic avatar Jun 05 '23 22:06 RhythmLunatic