summaryrefslogtreecommitdiff
path: root/opener
blob: d9160fb6013430bd86778348fc82363daa494526 (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