summaryrefslogtreecommitdiffstats
path: root/.bin/books
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
committerRomain Gonçalves <me@rgoncalves.se>2023-01-14 14:47:33 +0100
commit23e2bfd987c430bb41bc7860c46c2f572e9e2db4 (patch)
treea9a477e11fb6dbea189835147a149e56c0f03a7f /.bin/books
parentce6be946d024aa55a15d576388d05f90be671cf2 (diff)
downloaddots-23e2bfd987c430bb41bc7860c46c2f572e9e2db4.tar.gz
Sat Jan 14 02:47:33 PM CET 2023
Diffstat (limited to '.bin/books')
-rwxr-xr-x.bin/books10
1 files changed, 10 insertions, 0 deletions
diff --git a/.bin/books b/.bin/books
new file mode 100755
index 0000000..1eccb57
--- /dev/null
+++ b/.bin/books
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+set -xe
+
+command -v fzf zathura
+
+while true; do
+ file=$(find books docs -iname "*.pdf" -o -iname "*.epub" | fzf)
+ zathura "${file}"
+done
remember that computers suck.