From bc1995a86bdff9cde886bfdf6a0f5186b919c261 Mon Sep 17 00:00:00 2001 From: Meutel Date: Thu, 18 May 2017 18:16:19 +0200 Subject: [PATCH] OpenBSD: volume change script --- obsd-vol.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 obsd-vol.sh diff --git a/obsd-vol.sh b/obsd-vol.sh new file mode 100755 index 0000000..f5577c7 --- /dev/null +++ b/obsd-vol.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +INCR=${1:-10} +OUTPUT=$(mixerctl -n outputs.master) +CURRENT=${OUTPUT%,*} +VOL=$(( $CURRENT + $INCR )) + +mixerctl outputs.master=$VOL,$VOL