diff options
Diffstat (limited to 'opener')
-rwxr-xr-x | opener | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,8 +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;; + 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 |