diff options
Diffstat (limited to 'bin')
-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" & |