solorice/config/eww/scripts/getvol
Kristofers Solo a42ded1119 Use dotter
2024-08-28 09:02:07 +03:00

13 lines
250 B
Bash
Executable File

#!/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