commit 698dec13e126b3cc9bc9bc7e47ddc444772661d0
parent 3c52a78f90ef0923749516a61b9e6046f9148bc1
Author: regexghost <dev@regexghost.com>
Date: Sun, 30 Aug 2026 19:09:19 +0100
option to remove ~/.gphoto after unmounting iphone, other minor tweaks/fixes
Diffstat:
4 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/other-programs.sh b/other-programs.sh
@@ -311,7 +311,7 @@ sbase () {
sudo make install
cd ..
- read -p "Add \"/usr/bin\" to start of secure_path (enter to continue):"
+ read -p "Add \"/usr/bin\" to start of secure_path (enter to continue):" thing
sudo visudo
}
diff --git a/terminal-scripts/download-vids.sh b/terminal-scripts/download-vids.sh
@@ -27,7 +27,7 @@ done <<EOF
$(find "$targetDir/Shorts" "$targetDir/Videos" -type f | sort)
EOF
-read -p "Select videos to download/delete (e.g. 1 2 -3): " toDownload
+read -p "Select videos to download/delete (e.g. 1 2 -3, a=all): " toDownload
[ -f /tmp/to_download ] && rm /tmp/to_download
[ -f /tmp/to_delete ] && rm /tmp/to_delete
diff --git a/terminal-scripts/iphone-mount.sh b/terminal-scripts/iphone-mount.sh
@@ -5,6 +5,15 @@ MOUNTPOINT="$HOME/Downloads/USBDrive"
# This is a horrible script and I need to re-write it to dynamically get all these apps
# and present using fzf
+removegphoto () {
+ read -p "Delete ~/.gphoto? (y/N) " deleteYesOrNo
+
+ if [ "$deleteYesOrNo" = "y" ] || [ "$deleteYesOrNo" = "Y" ]; then
+ command rm -r ~/.gphoto
+ echo "Deleted"
+ fi
+}
+
if [[ "$1" == "mount" ]]; then
idevicepair validate
idevicepair pair || exit
@@ -43,8 +52,10 @@ elif [[ "$1" == "comicbookreadermount" ]]; then
ifuse --documents com.realvirtuality.Comic-Book-Reader "$MOUNTPOINT"
elif [[ "$1" == "unmount" ]] || [[ "$1" == "umount" ]]; then
fusermount -u "$MOUNTPOINT"
+ removegphoto
elif [[ "$1" == "force" ]]; then
fusermount -uz "$MOUNTPOINT"
+ removegphoto
fi
echo "Done"
diff --git a/terminal-scripts/vid-play.sh b/terminal-scripts/vid-play.sh
@@ -8,7 +8,8 @@ else
dir="Videos"
fi
-vid="$(find "${LOC}/${dir}/" -type f | sed "s|${LOC}/${dir}/||g" | fzf)"
+# Remove .txt files as there might be yt-dlp archive files
+vid="$(find "${LOC}/${dir}/" -type f | grep -v "[.]txt$" | sed "s|${LOC}/${dir}/||g" | fzf)"
[ "$vid" = "" ] && exit