]> git.phdru.name Git - dotfiles.git/blobdiff - bin/mplay
bin/mplay: Adapt from mplayer to mpv
[dotfiles.git] / 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 &