summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-11-09 10:53:57 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-11-09 10:53:57 +0000
commitbe98b19ba0cfd30edeafedca9629231fd829fd3e (patch)
tree8636953f012f7fde3580d8d8878cdeee7ff60a1d /bin
parent4fb3ea1cc4ec9321927588f73189a48413dd8387 (diff)
Add script to open downloads
Diffstat (limited to 'bin')
-rwxr-xr-xbin/downloads5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/downloads b/bin/downloads
new file mode 100755
index 0000000..c4c306e
--- /dev/null
+++ b/bin/downloads
@@ -0,0 +1,5 @@
+#!/bin/bash
+DOWNLOAD_DIR="$HOME/Downloads"
+PDF=$(ls -t $DOWNLOAD_DIR/*.pdf)
+TARGET=$(echo "${PDF//"$DOWNLOAD_DIR/"/}" | dmenu -i -p "Open File:")
+[[ -n $TARGET ]] && zathura "$DOWNLOAD_DIR/$TARGET" &