How to make a keyboard shortcut under gnome run a shell script with parameter ?
On terminal the following works fine:
sbv.sh 50%
It adjusts the volume of a speaker. The path of the script is /usr/bin.
But when entered as a command for keyboard-shortcut, neither
/bin/bash sbv.sh 50%
/usr/bin/sbv.sh 50%
gnome-terminal -x sbv.sh 50%
nor
sh -c "sbv.sh 50%"
produce the desired volume-change. The speaker goes mute instead.
If the shortcut is changed to
notify-send "hello"
that produces the notification message, so the keyboard shortcut works alright.