summaryrefslogtreecommitdiff
path: root/bin/books
diff options
context:
space:
mode:
Diffstat (limited to 'bin/books')
-rwxr-xr-xbin/books5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/books b/bin/books
new file mode 100755
index 0000000..8524277
--- /dev/null
+++ b/bin/books
@@ -0,0 +1,5 @@
+#!/bin/bash
+BOOKS_DIR="$HOME/Dropbox/books"
+PDF=$(locate "$BOOKS_DIR/*.pdf")
+TARGET=$(echo "${PDF//"$BOOKS_DIR/"/}" | dmenu -i -p "Open File:")
+[[ -n $TARGET ]] && zathura "$BOOKS_DIR/$TARGET" &