Code: Select all
#/bin/sh
# by stemsee
card=$(amixer -D default scontrols | head -1 | cut -f2 -d"'")
card=$(echo \'$card\')
dev=default
export Vol=$(amixer -M get Master | awk -v FS="[[%]" '/%/ {print $2}')
yad --title="Volume Control" --width=400 \
--no-buttons --horizontal --on-top --scale --print-partial \
--value=$Vol | while read line; do amixer -D $dev sset "$card" ${line}% ; sleep 0.01; done &