diff options
Diffstat (limited to 'bin/guiscripts')
-rwxr-xr-x | bin/guiscripts/dmpdf | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/bin/guiscripts/dmpdf b/bin/guiscripts/dmpdf deleted file mode 100755 index d26c841..0000000 --- a/bin/guiscripts/dmpdf +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi --width 30% --height 30% --matching-algorithm normal --prompt-text pdf:" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -l 10 -g 1 -x -i -p pdf:" -else - menucmd="fzf" -fi - -tmp="/tmp/dmpdf" -find ${1:-$HOME/docs $HOME/dl} 2> /dev/null | grep -E ".+\.pdf" | sort > "$tmp" -choice="$(\ - sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' "$tmp" | - awk '{printf "%s %s\n", NR ":", $0}' | - $menucmd | - grep -oE "^[0-9]+:" | - cut -f1 -d:)" -if [ -z "$choice" ]; then - exit -fi -file="$(sed -n "${choice}p" "$tmp")" -zathura "$file" & |