dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit 04619045ce21df2c6d4478fda7519bf01cad0406
parent 92ea5eb17491f655797e79f57a5cc0f7cad497d9
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Wed, 23 Jan 2019 08:47:21 -0500

Use zathura for common document types.

Diffstat:
M.config/lf/lfrc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
@@ -50,10 +50,10 @@ map <c-g> reload
 # use either file extensions and/or mime types here. Below uses an editor for
 # text files and a file opener for the rest.
 cmd open ${{
-    case $(file --mime-type $f -b) in
-        text/*) nohup emacsclient -c -a emacs $fx > /dev/null 2> /dev/null &;;
+    case $(xdg-mime query filetype $f) in
+        application/epub*|application/pdf|application/postscript|application/vnd.comicbook*|image/vnd.djvu*) nohup zathura $fx > /dev/null 2> /dev/null &;;
         image/*) nohup imv -n $fx ./ > /dev/null 2> /dev/null &;;
-        application/pdf) nohup zathura $fx > /dev/null 2> /dev/null &;;
+        text/*) nohup emacsclient -c -a emacs $fx > /dev/null 2> /dev/null &;;
         *) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;;
     esac
 }}