From 9a086348dad6aa98d9be189931138ae5de45d7ad Mon Sep 17 00:00:00 2001 From: Julian T Date: Wed, 3 Feb 2021 22:09:46 +0100 Subject: Added volume script and push to talk --- scripts/Scripts/volume | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 scripts/Scripts/volume (limited to 'scripts/Scripts/volume') 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 -- cgit v1.2.3