749 B
749 B
most_recent_note
Opens the most recently created PDF note from the Google Drive notes folder.
Description
This script finds the most recently modified PDF file in ~/Google Drive/My Drive/notes/pdf and opens it with zathura PDF viewer.
Dependencies
- zathura (PDF viewer)
Usage
./most_recent_note.sh
How It Works
- Searches for all PDF files in
~/Google Drive/My Drive/notes/pdf - Sorts them by modification time (newest first)
- Opens the most recent PDF with zathura
Notes
- Requires Google Drive to be synced to the local machine
- Assumes notes are stored in the specific path:
~/Google Drive/My Drive/notes/pdf - zathura must be installed and available in PATH