From: Oleg Broytman Date: Sun, 14 Apr 2019 17:59:02 +0000 (+0300) Subject: bin/mplay: Adapt from mplayer to mpv X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=1d90dc5d971420778b3eb6999f0a3c8873653b9a;p=dotfiles.git bin/mplay: Adapt from mplayer to mpv --- diff --git a/bin/mplay b/bin/mplay index 613aeff..6985866 100755 --- a/bin/mplay +++ b/bin/mplay @@ -1,15 +1,15 @@ #! /bin/sh -options="-ao pulse -quiet" +options="--ao pulse --quiet" 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 &