diff options
| author | srdusr <trevorgray@srdusr.com> | 2025-10-01 17:21:05 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2025-10-01 17:21:05 +0200 |
| commit | afe53c73bfd21a2931afccae9ea0bcfbfd4a9405 (patch) | |
| tree | ad83f1a6da18ed04808040ce1eff4b7d878d1ede /linux/home/.scripts/track-books.sh | |
| parent | a1c6c0e20541575e57660d771b8a948d558648d1 (diff) | |
| download | dotfiles-afe53c73bfd21a2931afccae9ea0bcfbfd4a9405.tar.gz dotfiles-afe53c73bfd21a2931afccae9ea0bcfbfd4a9405.zip | |
Testing updated dir structures
Diffstat (limited to 'linux/home/.scripts/track-books.sh')
| -rwxr-xr-x | linux/home/.scripts/track-books.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/linux/home/.scripts/track-books.sh b/linux/home/.scripts/track-books.sh deleted file mode 100755 index f13add8..0000000 --- a/linux/home/.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 |
