2014-11-08, 17:17
The volume step size (the amount the volume changes by when you press volume up or down) is much too small when using a remote with slow key repeat; it makes it take forever to change the volume. You can change the step size with a custom keyboard.xml and python script (I have my volume step set to 5x the default), but it would be nice if there was a setting in the GUI for this.
If anyone's interested, I've included my current config below.
volume.py:
keyboard.xml:
Edit: on Linux, there's a faster way to do it, see this post.
If anyone's interested, I've included my current config below.
volume.py:
Code:
import json, sys, xbmc
step = 5
if sys.argv[1] == 'down':
step *= -1
rpc = '{"jsonrpc": "2.0", "method": "Application.GetProperties", "params": {"properties": ["volume"]}, "id": 1}'
vol = json.loads(xbmc.executeJSONRPC(rpc))["result"]["volume"]
xbmc.executebuiltin('SetVolume(%d,showVolumeBar)' % (vol + step))
keyboard.xml:
Code:
<keymap>
<global>
<keyboard>
<volume_up>RunScript("/path/to/volume.py", "up")</volume_up>
<volume_down>RunScript("/path/to/volume.py", "down")</volume_down>
</keyboard>
</global>
</keymap>
Edit: on Linux, there's a faster way to do it, see this post.