Setup Cleanup on machine transfer

This commit is contained in:
yage
2022-02-06 01:08:03 -07:00
parent fdb6f3d00a
commit 795beba6ce
6 changed files with 7 additions and 15 deletions

View File

@ -23,15 +23,14 @@ case $DEVICE in
* ) ERROR 1 "Unsupported device '$DEVICE'" ;;
esac
VOLUME_INCREMENT=10%
DEFAULT_DEVICE="@DEFAULT_$(echo $DEVICE | tr '[:lower:]' '[:upper:]')@"
case $COMMAND in
up )
pactl set-$DEVICE-volume $DEFAULT_DEVICE +$VOlUME_INCREMENT
pactl set-$DEVICE-volume $DEFAULT_DEVICE +10%
PLAY_SFX volume
;;
down )
pactl set-$DEVICE-volume $DEFAULT_DEVICE -$VOlUME_INCREMENT
pactl set-$DEVICE-volume $DEFAULT_DEVICE -10%
PLAY_SFX volume
;;
mute )