dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 4af49af47d84eb522ded7e2c238346b095010c5f
parent dc7e340d9ffc6643fca788695eca57b6bde3608e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 20 Oct 2020 09:32:13 +0200

plumb: open djvu with zathura

Diffstat:
M.local/bin/plumb | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -113,10 +113,6 @@ handle_file_type() { printf 'target is a file with mime type "%s"\n' "$mime_type" fi case "$mime_type" in - image/svg*) - detach inkscape "$1";; - image/*) - detach sxiv -a "$1";; video/*|\ audio/*|\ application/ogg|\ @@ -138,7 +134,7 @@ handle_file_type() { $EDITOR "$1";; application/*html*) detach $BROWSER "$1";; - application/pdf*|application/postscript) + application/pdf*|application/postscript|image/vnd.djvu) detach zathura "$1";; application/*document*|\ application/msword*|\ @@ -146,6 +142,10 @@ handle_file_type() { application/*powerpoint*|\ application/zip) detach libreoffice "$1";; + image/svg*) + detach inkscape "$1";; + image/*) + detach sxiv -a "$1";; *) die "file type $mime_type is not supported" esac