From cab75425106eb860975fc8df79ee17da0b718a3d Mon Sep 17 00:00:00 2001 From: Aki Date: Thu, 6 Aug 2020 20:13:04 +0200 Subject: Extracted simple opener from browse --- opener | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 opener (limited to 'opener') 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 -- cgit v1.1