srdusr
aboutsummaryrefslogtreecommitdiffstats
path: root/track-books.sh
diff options
context:
space:
mode:
authorsrdusr <[email protected]>2025-09-24 05:01:20 +0200
committersrdusr <[email protected]>2025-09-24 05:01:20 +0200
commit553cb2204b0bf27afe13c6332f5679bbd47172a0 (patch)
tree75c86ff018122a682e0afd7a0e2a0228a63e44bd /track-books.sh
parentb20e4e004be74884cc72c57a3128e36fd5177d7a (diff)
downloadscripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.tar.gz
scripts-553cb2204b0bf27afe13c6332f5679bbd47172a0.zip
Update/Overhaul
Diffstat (limited to 'track-books.sh')
-rwxr-xr-xtrack-books.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/track-books.sh b/track-books.sh
deleted file mode 100755
index f13add8..0000000
--- a/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