summaryrefslogtreecommitdiff
path: root/.local/bin/read_books
blob: 9c4b82f79d386993625e805e9ec5353678f969e3 (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)|(epub)/{print $2}' | dmenu -fn "hack:size=10" -nb "#3c302e" -nf "#bbbbbb" -sb "#a86438" -sf "#000000" -l 20);
if [ -n $book ]; then $READER $book; fi