From 406c694bdc4afb7b8f8261df10556129a8ac080e Mon Sep 17 00:00:00 2001 From: lara Date: Fri, 20 Nov 2020 19:18:03 +0100 Subject: [PATCH] [mailcap] Fix paths and add dragon action to feh --- bin/dragon | 10 ++++++++++ mailcap | 6 ++---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100755 bin/dragon diff --git a/bin/dragon b/bin/dragon new file mode 100755 index 0000000..7e2e777 --- /dev/null +++ b/bin/dragon @@ -0,0 +1,10 @@ +#!/bin/sh + +# We use a script instead of an alias because we want this utility in our path, +# usable from dmenu + +if ! which dragon-drag-and-drop > /dev/null 2>&1; then + echo "Error: dragon-drag-and-drop isn't installed!" | tee /dev/fd/2 | xargs -n1 -d "\n" notify-send +fi + +dragon-drag-and-drop $* diff --git a/mailcap b/mailcap index 1eaa417..4c0d0a9 100644 --- a/mailcap +++ b/mailcap @@ -1,5 +1,3 @@ text/html; unshare -n -r w3m -I %{charset} -T text/html; copiousoutput; -image/*; mutt_bgrun /usr/bin/feh -. %s; test=test -n "$DISPLAY" -#application/pdf; /usr/local/bin/mutt_bgrun /usr/bin/evince %s; test=test -n "$DISPLAY" -application/pdf; evince %s; test=test -n "$DISPLAY" - +image/*; mutt_bgrun /usr/bin/feh --action1 ";dragon -x '\%F'" -. %s; test=test -n "$DISPLAY" +application/pdf; mutt_bgrun /usr/bin/zathura %s; test=test -n "$DISPLAY"