summaryrefslogtreecommitdiff
path: root/scripts/Scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Scripts')
-rwxr-xr-xscripts/Scripts/volume29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/Scripts/volume b/scripts/Scripts/volume
new file mode 100755
index 0000000..1a54728
--- /dev/null
+++ b/scripts/Scripts/volume
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+
+case $1 in
+ softmute)
+ pacmd set-source-volume @DEFAULT_SOURCE@ 0
+ ;;
+ softunmute)
+ pacmd set-source-volume @DEFAULT_SOURCE@ 28000
+ ;;
+ volumedown)
+ pactl set-sink-volume @DEFAULT_SINK@ -5%
+ ;;
+ volumeup)
+ pactl set-sink-volume @DEFAULT_SINK@ +5%
+ ;;
+ volumetoggle)
+ pactl set-sink-mute @DEFAULT_SINK@ toggle
+ ;;
+
+ playtoggle)
+ playerctl play-pause
+ ;;
+ forward)
+ playerctl next
+ ;;
+ backward)
+ playerctl previous
+ ;;
+esac