diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-07 21:54:35 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-07 21:54:35 +0100 |
commit | c1f9f264733be71b51301f6b8516d78c18e111c9 (patch) | |
tree | 03076a9594697ff0e980eef638fa13d84c1c77c3 /bin/guiscripts/dmpdf | |
parent | 1585b4226b9fe55d0a8dd2db7bbd61cf454a4c9d (diff) | |
parent | b2f58f47e5d87cb9ad0f1c06b043b669706a2353 (diff) |
Merge remote-tracking branch 'refs/remotes/origin/main'
Diffstat (limited to 'bin/guiscripts/dmpdf')
-rwxr-xr-x | bin/guiscripts/dmpdf | 4 |
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" & |