summaryrefslogtreecommitdiff
path: root/opener
diff options
context:
space:
mode:
Diffstat (limited to 'opener')
-rwxr-xr-xopener8
1 files changed, 8 insertions, 0 deletions
diff --git a/opener b/opener
new file mode 100755
index 0000000..bfb2bb5
--- /dev/null
+++ b/opener
@@ -0,0 +1,8 @@
+#!/bin/sh
+case "$1" in
+ application/pdf) exec zathura "$2";;
+ image/*) exec sxiv "$2";;
+ text/html) exec ./viewhtml "$2" "";;
+ text/*) exec less "$2";;
+ *) echo $1 $2;;
+esac