Commit | Line | Data |
---|---|---|
187073f4 SK |
1 | #! /bin/bash |
2 | ||
3 | set -e | |
4 | ||
5 | if [ "$1" != "" ] | |
6 | then | |
7 | value="$1" | |
8 | else | |
9 | value="50%" | |
10 | fi | |
11 | ||
c4f7bc0a SK |
12 | sink="$(pactl info | awk '/^Default Sink:/ {print $3; exit 0}')" |
13 | pactl set-sink-mute "$sink" false | |
14 | pactl set-sink-volume "$sink" "$value" |