summaryrefslogtreecommitdiff
path: root/opener
blob: 6ece94ef23a49fe4e9bf84e521e39a70362f472a (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
case "$1" in
	application/pdf) exec zathura "$3";;
	image/*) exec sxiv "$3";;
	text/html*) exec ./viewhtml "$3" "$2";;
	text/*) exec less "$3";;
	*) echo "\e[31m$1\e[0m $2 $3";;
esac