]> git.phdru.name Git - dotfiles.git/blobdiff - bin/mplay
Play video file(s) asking audio volume
[dotfiles.git] / bin / mplay
index 698586646d4b278079b0730d8142bb4313dc6e85..e4ca11004c5b1d39c3198b168f33c776fa48261c 100755 (executable)
--- a/bin/mplay
+++ b/bin/mplay
@@ -2,6 +2,10 @@
 
 options="--ao pulse --quiet"
 
+if [ -n "$AUDIO_VOLUME" ]; then
+   options="$options --af=loudnorm --volume=$AUDIO_VOLUME"
+fi
+
 if [ "$DISPLAY" ]; then
    (xscreensaver-command -exit
    xset -dpms s off) &