summaryrefslogtreecommitdiff
path: root/scripts/Scripts/volume
blob: 1a5472886c9801efa0f3a68e4ed16c460baa55c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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