summaryrefslogtreecommitdiff
path: root/bin/guiscripts
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-07 10:37:20 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-03-07 10:37:20 +0100
commitdc1528525078ce138974beb3c354abf7774f7f00 (patch)
treee4ef16c77880b761d9114afa339ce7801a76cd86 /bin/guiscripts
parent2b8b624479b32709ce0d4c37218d50dc31bac4df (diff)
updated dmpdf to directories
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-xbin/guiscripts/dmpdf4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/guiscripts/dmpdf b/bin/guiscripts/dmpdf
index cf1f0dd..21f3ed0 100755
--- a/bin/guiscripts/dmpdf
+++ b/bin/guiscripts/dmpdf
@@ -1,6 +1,6 @@
#!/bin/bash
-find ${1:-~/docs ~/Downloads} 2> /dev/null | grep -E ".+\.pdf" | sort > /tmp/dmpdf
+find ${1:-$HOME/docs $HOME/dl} 2> /dev/null | grep -E ".+\.pdf" | sort > /tmp/dmpdf
choice="$(\
sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' /tmp/dmpdf \
| awk '{printf "%s %s\n", NR ":", $0}' \
@@ -11,4 +11,4 @@ if [ -z "$choice" ]; then
exit
fi
file="$(sed -n "${choice::-1}p" /tmp/dmpdf)"
-evince "$file" &
+zathura "$file" &