diff options
author | Urbain Vaes <urbain@vaes.uk> | 2015-11-09 10:53:57 +0000 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2015-11-09 10:53:57 +0000 |
commit | be98b19ba0cfd30edeafedca9629231fd829fd3e (patch) | |
tree | 8636953f012f7fde3580d8d8878cdeee7ff60a1d /bin/downloads | |
parent | 4fb3ea1cc4ec9321927588f73189a48413dd8387 (diff) |
Add script to open downloads
Diffstat (limited to 'bin/downloads')
-rwxr-xr-x | bin/downloads | 5 |
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" & |