Samuel Shuert | 504b0fd | 2024-02-11 14:39:15 -0500 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | if command -v pamixer &>/dev/null; then | ||||
4 | if [ true == $(pamixer --get-mute) ]; then | ||||
5 | echo 0 | ||||
6 | exit | ||||
7 | else | ||||
8 | pamixer --get-volume | ||||
9 | fi | ||||
10 | else | ||||
11 | amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}' | ||||
12 | fi |