L4T-Megascript
L4T-Megascript copied to clipboard
Enable volume buttons in openbox
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.
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
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/
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.