]> git.phdru.name Git - dotfiles.git/blobdiff - bin/mplay
Fix(.vim/python/virtualenv.py): Only activate venv for the current version
[dotfiles.git] / bin / mplay
index 698586646d4b278079b0730d8142bb4313dc6e85..decfbfe8e22fa83a39d12f50821d116c571a4a92 100755 (executable)
--- a/bin/mplay
+++ b/bin/mplay
@@ -1,6 +1,10 @@
 #! /bin/sh
 
-options="--ao pulse --quiet"
+options="--ao=pulse --quiet"
+
+if [ -n "$AUDIO_VOLUME" ]; then
+   options="$options --af=loudnorm --volume=$AUDIO_VOLUME"
+fi
 
 if [ "$DISPLAY" ]; then
    (xscreensaver-command -exit