From 777498e2ed6db0426b1366fe218bea905c881439 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 9 Oct 2015 17:26:07 +0100 Subject: Add shortcut to run any script from bin --- bin/books | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/books (limited to 'bin/books') 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" & -- cgit v1.2.3