diff options
author | Julian T <julian@jtle.dk> | 2021-02-03 22:09:46 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-03 22:09:46 +0100 |
commit | 9a086348dad6aa98d9be189931138ae5de45d7ad (patch) | |
tree | 35ca3f5043c773ddbbbd21a69a1033c314af2881 /scripts/Scripts/volume | |
parent | f38b8e6b39d8fce125d3994764cb28153ec477f7 (diff) |
Added volume script and push to talk
Diffstat (limited to 'scripts/Scripts/volume')
-rwxr-xr-x | scripts/Scripts/volume | 29 |
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 |