From be98b19ba0cfd30edeafedca9629231fd829fd3e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Mon, 9 Nov 2015 10:53:57 +0000 Subject: Add script to open downloads --- bin/downloads | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/downloads (limited to 'bin') 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" & -- cgit v1.2.3