When searching for "XBMC change system volume" this question pops up as the first result. The current answers are not bad, but with the newer versions of XBMC it can be solved differently with script execution.
By editing the
keyboard.xml file you can change the keybindings to execute scripts. Location of keyboard.xml on all systems
I created a new
keyboard.xml file in
/home/USER/.xbmc/userdata/keymaps/ with the following content:
This overrides the default behaviour of changing the XBMC sound levels with executing a script. For Ubuntu, I created a directory with various scripts in my home directory (scripts).
Contents of the files:
subprocess.call( "amixer -D pulse set Master 1+ toggle", shell=True )
subprocess.call( "amixer -D pulse sset Master 5%-", shell=True )
subprocess.call( "amixer -D pulse sset Master 5%+", shell=True )
Then make the files executable with
chmod +x Scripts/* . The minus and plus button on the numpad can still lower/raise the volume of XBMC, but those can also be disabled with changing the