diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-31 09:54:52 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-31 09:54:52 +0300 |
| commit | a29e3bcd43d74e584fb909f94ee7a95c411086fd (patch) | |
| tree | 4d5b6a8c40239d307d033b0367509972c2fd6b43 | |
| parent | a02a78f1ce2cc24558959bd19a76d3dcb133f450 (diff) | |
Update
| -rw-r--r-- | fish/conf.d/update.fish | 3 | ||||
| -rwxr-xr-x | scripts/usbimport | 12 |
2 files changed, 5 insertions, 10 deletions
diff --git a/fish/conf.d/update.fish b/fish/conf.d/update.fish index 226cf39..e28ade6 100644 --- a/fish/conf.d/update.fish +++ b/fish/conf.d/update.fish @@ -74,8 +74,7 @@ function update::tools doas npm install -g opencode-ai echo "installing/updating pi-coding-agent globally via npm" - doas npm install -g @mariozechner/pi-coding-agent - + doas npm install -g @earendil-works/pi-coding-agent end for pid in $pids diff --git a/scripts/usbimport b/scripts/usbimport index db65dd0..6a21778 100755 --- a/scripts/usbimport +++ b/scripts/usbimport @@ -4,8 +4,7 @@ set -euo pipefail declare -r PROGRAM=${0##*/} declare -r GVFS_ROOT=${GVFS_ROOT:-"/run/user/$(id -u)/gvfs"} declare -r FUJIFILM_DEST=${FUJIFILM_DEST:-"$HOME/Documents/Inbox/Fujifilm"} -declare -r SUPERNOTE_DEST=${SUPERNOTE_DEST:-"$HOME/Documents/Inbox/Note"} -declare -r SUPERNOTE_PDF_DEST=${SUPERNOTE_PDF_DEST:-"$HOME/Documents/Supernote"} +declare -r SUPERNOTE_DEST=${SUPERNOTE_DEST:-"$HOME/Documents/Inbox/Supernote"} declare -r CONVERT_PARALLELISM=${CONVERT_PARALLELISM:-3} declare -i TOTAL_FOUND=0 @@ -47,17 +46,15 @@ Import files from supported USB devices mounted through GVFS. Modes: auto Import from the single supported device currently connected. fujifilm Copy only JPEG files from a Fuji/Fujifilm camera. - supernote Copy only the Note folder from a Supernote Nomad, then convert .note files to PDF. + supernote Copy the Supernote Nomad Note folder, then convert .note files to PDF. Default destinations: Fujifilm JPEGs: $FUJIFILM_DEST - Supernote Note files: $SUPERNOTE_DEST - Supernote PDF files: $SUPERNOTE_PDF_DEST + Supernote files: $SUPERNOTE_DEST Environment overrides: FUJIFILM_DEST=/path/to/dir SUPERNOTE_DEST=/path/to/dir - SUPERNOTE_PDF_DEST=/path/to/dir CONVERT_PARALLELISM=3 GVFS_ROOT=/run/user/UID/gvfs EOF_USAGE @@ -389,12 +386,11 @@ import_supernote() { log "Device: Supernote Nomad" log "Source: $note_root" log "Destination: $dest" - log "PDF destination: $SUPERNOTE_PDF_DEST" log "Importing only the Supernote Note folder." copy_supernote_files_from_dir "$note_root" "$dest" log "Supernote note files are copied locally." log "It is safe to unplug the Supernote now if you eject/unmount it safely." - convert_supernote_notes_to_pdfs "$dest" "$SUPERNOTE_PDF_DEST" + convert_supernote_notes_to_pdfs "$dest" "$dest" finish_import "$dest" } |
