summaryrefslogtreecommitdiff
path: root/.local/bin/volctl
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/volctl')
-rwxr-xr-x.local/bin/volctl12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/volctl b/.local/bin/volctl
new file mode 100755
index 0000000..faa8de6
--- /dev/null
+++ b/.local/bin/volctl
@@ -0,0 +1,12 @@
1#!/bin/sh
2# Script for volume control
3#
4# Accepts either a number and a +,- operator (volctl 5 +) or "toggle" (volctl toggle)
5
6# If the lone argument is "toggle", toggle mute/unmute
7[ "$1" = "toggle" ] && amixer -q sset Master toggle && signal-vol && exit
8
9num=$1
10dir=$2
11
12amixer -q sset Master $num%$dir unmute && signal-vol