This commit is contained in:
Miguel Palhas
2024-10-06 17:53:14 +01:00
parent 32a2eb249c
commit eab58cce91
6 changed files with 23 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/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