summaryrefslogtreecommitdiff
path: root/bin/books
blob: 85242773da5994dc7523b52643c021f368cbc45e (plain)
1
2
3
4
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" &