aboutsummaryrefslogtreecommitdiff
path: root/.scripts/track-books.sh
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
committersrdusr <trevorgray@srdusr.com>2025-08-30 19:22:59 +0200
commit19120d4f9761c67d99ed1ce3da6084b83f5a49c9 (patch)
treef234cad1bdad88114a63c9702144da487024967a /.scripts/track-books.sh
parent5928998af5404ae2be84c6cecc10ebf84bd3f3ed (diff)
downloaddotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.tar.gz
dotfiles-19120d4f9761c67d99ed1ce3da6084b83f5a49c9.zip
Linux-specific dotfiles
Diffstat (limited to '.scripts/track-books.sh')
-rwxr-xr-x.scripts/track-books.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/.scripts/track-books.sh b/.scripts/track-books.sh
deleted file mode 100755
index f13add8..0000000
--- a/.scripts/track-books.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-# Created By: srdusr
-# Created On: Wed 25 Oct 2023 13:45:52 CAT
-# Project: Simple script to track most recent books opened, mainly for neovim usage.
-
-# Dependencies: inotify-tools
-
-books_directory="$HOME/documents/books"
-recent_books_file="$HOME/.config/nvim/tmp/recent_books.txt"
-
-inotifywait -m -e CREATE -e OPEN -r "$books_directory" |
- while read -r path action file; do
- if [[ $file == *.pdf || $file == *.epub ]]; then
- echo "$path/$file" >>"$recent_books_file"
- # Remove duplicates and overwrite the recent_books_file
- sort -u -o "$recent_books_file" "$recent_books_file"
- fi
- done