]> git.phdru.name Git - dotfiles.git/commitdiff
bin/mplay: Adapt from mplayer to mpv
authorOleg Broytman <phd@phdru.name>
Sun, 14 Apr 2019 17:59:02 +0000 (20:59 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 14 Apr 2019 17:59:02 +0000 (20:59 +0300)
bin/mplay

index 613aeffb59d216170c34943988f14e781362a733..698586646d4b278079b0730d8142bb4313dc6e85 100755 (executable)
--- 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 &