#!/bin/bash

case $(tty) in
    */pts/*) arg=            ;;
          *) arg="--vo=drm"  ;;
esac

[ -n "$DISPLAY" ] && arg=

/usr/bin/mpv $arg "$@"

