aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vol.sh')
-rwxr-xr-xvol.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/vol.sh b/vol.sh
index 0ee7e35..180cfe6 100755
--- a/vol.sh
+++ b/vol.sh
@@ -1,5 +1,7 @@
#!/bin/sh
-sink="$(pactl list sinks | grep "^Sink " | cut -d'#' -f2 | tail -n 1)"
+
+sink="@DEFAULT_SINK@"
+
if [ "$1" = "mute" ]; then
pactl set-sink-mute "$sink" toggle
else