OpenBSD: volume change script
This commit is contained in:
parent
52a807f058
commit
bc1995a86b
8
obsd-vol.sh
Executable file
8
obsd-vol.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user