commit 47df503
hovercats
·
2023-02-22 19:51:02 +0000 UTC
parent 3866426
dpdf: port to rc
1 files changed,
+16,
-0
A
rc/dpdf
A
rc/dpdf
+16,
-0
1@@ -0,0 +1,16 @@
2+#!/bin/rc
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+switch($1) {
13+case -d
14+ rm -rf `{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'Delete:'}
15+case *
16+ mupdf `{find *.pdf -type f | awk -F "/" '{print $NF}' | dmenu -i -l 20 -p 'View:'}
17+}