OpenBSD: volume change script

This commit is contained in:
Meutel 2017-05-18 18:16:19 +02:00
parent 52a807f058
commit bc1995a86b
1 changed files with 8 additions and 0 deletions

8
obsd-vol.sh Executable file
View File

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