summaryrefslogtreecommitdiff
path: root/scripts/Scripts/volume
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-03 22:09:46 +0100
committerJulian T <julian@jtle.dk>2021-02-03 22:09:46 +0100
commit9a086348dad6aa98d9be189931138ae5de45d7ad (patch)
tree35ca3f5043c773ddbbbd21a69a1033c314af2881 /scripts/Scripts/volume
parentf38b8e6b39d8fce125d3994764cb28153ec477f7 (diff)
Added volume script and push to talk
Diffstat (limited to 'scripts/Scripts/volume')
-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