X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=bin%2Fmplay;h=e4ca11004c5b1d39c3198b168f33c776fa48261c;hb=5080a18901c90727c7dd11cc43bdefbad53f42c7;hp=613aeffb59d216170c34943988f14e781362a733;hpb=401080b597fb8dc0042edbe538d6704a7e1d181b;p=dotfiles.git diff --git a/bin/mplay b/bin/mplay index 613aeff..e4ca110 100755 --- a/bin/mplay +++ b/bin/mplay @@ -1,15 +1,19 @@ #! /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 xset -dpms s off) & fi -cgmem_nice 500 mpv $options "$@" +cgmem_nice 1000 mpv $options "$@" -if [ "$DISPLAY" ]; then +if [ -n "$DISPLAY" ]; then cd "$HOME" xset +dpms s on xscreensaver &