others/read.sh

12 lines
183 B
Bash
Executable File

#!/bin/sh
## read pdf's with or without X server (Xorg) ##
# read.sh by @root_informatica.
TARGET=$1
# check display.
[ -n "$DISPLAY" ] && zathura "$TARGET" \
|| fbpdf "$TARGET"