diff options
author | Aki <please@ignore.pl> | 2020-08-06 20:13:04 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2020-08-06 20:13:04 +0200 |
commit | cab75425106eb860975fc8df79ee17da0b718a3d (patch) | |
tree | 2b6a5204cecef02fe6c6844ad262ec68dfb45ead /opener | |
parent | 983fb04ca74a08b7e297f02a7eefb1cb98e9d063 (diff) | |
download | browse-cab75425106eb860975fc8df79ee17da0b718a3d.zip browse-cab75425106eb860975fc8df79ee17da0b718a3d.tar.gz browse-cab75425106eb860975fc8df79ee17da0b718a3d.tar.bz2 |
Extracted simple opener from browse
Diffstat (limited to 'opener')
-rwxr-xr-x | opener | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |