mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-26 14:12:23 +00:00
13 lines
250 B
Text
13 lines
250 B
Text
|
#!/bin/sh
|
||
|
|
||
|
if command -v pamixer &>/dev/null; then
|
||
|
if [ true == $(pamixer --get-mute) ]; then
|
||
|
echo 0
|
||
|
exit
|
||
|
else
|
||
|
pamixer --get-volume
|
||
|
fi
|
||
|
else
|
||
|
amixer -D pulse sget Master | awk -F '[^0-9]+' '/Left:/{print $3}'
|
||
|
fi
|