summaryrefslogtreecommitdiff
path: root/scripts/Scripts/volume
blob: 68e7bde74a58dfa4e936d8df88a0c163d944cc1d (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
30
31
32
#!/usr/bin/env bash

case $1 in
    micmutetoggle)
        pacmd set-source-mute @DEFAULT_SOURCE@ toggle
        ;;
    softmute)
        pacmd set-source-volume @DEFAULT_SOURCE@ 0
        ;;
    softunmute)
        pacmd set-source-volume @DEFAULT_SOURCE@ 50000
        ;;
    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