utility-scripts/set_volume
2015-06-15 01:58:20 +02:00

10 lines
180 B
Bash
Executable File

#!/bin/dash
if [ -z "$1" ] || [ -n "$(echo $1|sed 's/[0-9]//g')" ]; then
echo "Usage: $0 <volume 0-100>"
exit
fi
pacmd set-sink-volume 0 $(($1 * 65536/100)) >/dev/null
exit $?