others/play.sh

12 lines
193 B
Bash
Executable File

#!/bin/sh
## play video with or without X server (Xorg) ##
# play.hs by @root_informatica.
TARGET=$1
# check display.
[ -n "$DISPLAY" ] && mpv "$TARGET" \
|| mpv --vo=drm "$TARGET"