summaryrefslogtreecommitdiff
path: root/volume
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2025-11-12 09:54:05 +0100
committerfilip <“filip.rabiega@gmail.com”>2025-11-12 09:54:05 +0100
commita5a501116087587e043d9c682de28f5297059c55 (patch)
treebb9b53aee71e7f8febe457e595e5ef447d2fc464 /volume
parent563c858d140b2854bbb130caacb44cfed81ad837 (diff)
downloadchadscripts-a5a501116087587e043d9c682de28f5297059c55.tar.gz
chadscripts-a5a501116087587e043d9c682de28f5297059c55.tar.bz2
chadscripts-a5a501116087587e043d9c682de28f5297059c55.zip
no message
Diffstat (limited to 'volume')
-rwxr-xr-xvolume8
1 files changed, 7 insertions, 1 deletions
diff --git a/volume b/volume
index b40ecf1..3da8d8f 100755
--- a/volume
+++ b/volume
@@ -1,3 +1,9 @@
#!/bin/sh
+# TODO: see if pulseaudio is running
-pactl set-sink-volume @DEFAULT_SINK@ "$1"
+case "$1" in
+ up) pactl set-sink-volume @DEFAULT_SINK@ "+5%" ;;
+ down) pactl set-sink-volume @DEFAULT_SINK@ "-5%" ;;
+ mute) pactl set-sink-mute @DEFAULT_SINK@ toggle ;;
+ *) pactl set-sink-volume @DEFAULT_SINK@ "$1" ;;
+esac