Defining keyboard shortutcs in linux can be tricky. At least for me.
pacman -S xbindkeys
xbindkeys -d > ~/.xbindkeysrc
Examples of volume control:
"amixer set Master toggle"
m:0x0 + c:121
"amixer set Master 5%+"
m:0x0 + c:123
"amixer set Master 5%-"
m:0x0 + c:122
To-be-called command is on first line. Invoking key combination on second line.
To get the right keycodes(the weird m:0x0 + c:121
) use xbindkeys -k
from terminal.
White window pops up and when you press some key combination proper codes are printed to terminal.
You can either use cryptic codes like me or nice readable ones. The nice readable ones weren’t working for me.
Shortcuts will work after reboot.
Then you can define keyboard shortcuts in openbox config.
~/.config/openbox/lxde-rc.xml
Well actually openbox got a good documentation where you can read it all:
http://openbox.org/wiki/Help:Bindings
and