bin-utils/obsd-vol.sh

9 lines
146 B
Bash
Raw Permalink Normal View History

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