#! /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 &