commit 434c13b

hovercats  ·  2023-11-22 11:31:20 +0000 UTC
parent b95824b
sh/dpdf: drop in favor of rc rewrite
1 files changed,  +0, -18
+0, -18
 1@@ -1,18 +0,0 @@
 2-#!/bin/sh -e
 3-
 4-# tiny script to see files in Documents. mainly pdfs for me.
 5-# opened with mupdf
 6-
 7-# set DIR variable to whatever floats your boat
 8-DIR="$HOME"/usr/doc
 9-
10-cd "$DIR"
11-
12-case $1 in
13-  -d)
14-  rm -rf "$(find ./*.pdf -type f | awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'Delete:')"
15-  ;;
16-   *)
17-  exec mupdf "$(find ./*.pdf -type f |awk -F "/" '{print $NF}' | dmenu -c -i -l 20 -p 'View:')"
18-  ;;
19-esac