summaryrefslogtreecommitdiff
path: root/.local/bin/read_books
blob: 3ff24115b57c8bc19344bf5f2692542fc90f4be8 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

#DMENU_OPTION="dmenu -fn \"hack:size=10\" -nb \"#3c302e\" -nf \"#bbbbbb\" -sb  \"#a86438\" -sf \"#000000\" -l 20"

#du -a ~/Documents/books/* | awk '/\.pdf/{print $2}' | dmenu -fn "hack:size=10" -nb "#3c302e" -nf "#bbbbbb" -sb "#a86438" -sf "#000000" -l 20 | xargs -r $READER ;
book=$(du -a ~/Documents/books/* | awk '/\.pdf/{print $2}' | dmenu -fn "hack:size=10" -nb "#3c302e" -nf "#bbbbbb" -sb "#a86438" -sf "#000000" -l 20);
if [ -n $book ]; then $READER $book; fi