bin-utils/obsd-vol.sh

9 lines
146 B
Bash
Executable File

#!/bin/sh
INCR=${1:-10}
OUTPUT=$(mixerctl -n outputs.master)
CURRENT=${OUTPUT%,*}
VOL=$(( $CURRENT + $INCR ))
mixerctl outputs.master=$VOL,$VOL