dotfiles

regexghost dotfiles and scripts
git clone https://git.regexghost.com/dotfiles.git
Log | Files | Refs | README

commit da8dae60effc3367e39ca9487edadfe8b3850437
parent 279d21ab07978e8f34d6ff8c98c9c283093453e4
Author: regexghost <dev@regexghost.com>
Date:   Sun,  6 Sep 2026 20:01:36 +0100

feedback on iphone umount, don't try to delete gphoto dir if it doesn't exist, and underscore to hyphen fixes

Diffstat:
Mpanel-scripts/metoffice.sh | 4++--
Mpanel-scripts/sunrise.sh | 4++--
Mterminal-scripts/iphone-mount.sh | 4++++
3 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/panel-scripts/metoffice.sh b/panel-scripts/metoffice.sh @@ -4,10 +4,10 @@ [ -d "/tmp/panel_i3_data" ] || mkdir "/tmp/panel_i3_data" -# Syntax for current_location.csv: +# Syntax for current-location.csv: # `lat|lon` -curLocationFile="$XDG_CONFIG_HOME/regexghost/current_location.csv" +curLocationFile="$XDG_CONFIG_HOME/regexghost/current-location.csv" lat=$(cat "$curLocationFile" | cut -d "|" -f 1) lon=$(cat "$curLocationFile" | cut -d "|" -f 2) diff --git a/panel-scripts/sunrise.sh b/panel-scripts/sunrise.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -# Syntax for current_location.csv: +# Syntax for current-location.csv: # `lat|lon` -curLocationFile="$XDG_CONFIG_HOME/regexghost/current_location.csv" +curLocationFile="$XDG_CONFIG_HOME/regexghost/current-location.csv" lat=$(cat "$curLocationFile" | cut -d "|" -f 1) lon=$(cat "$curLocationFile" | cut -d "|" -f 2) diff --git a/terminal-scripts/iphone-mount.sh b/terminal-scripts/iphone-mount.sh @@ -6,6 +6,8 @@ MOUNTPOINT="$HOME/Downloads/USBDrive" # and present using fzf removegphoto () { + [ -d ~/.gphoto ] || return + read -p "Delete ~/.gphoto? (y/N) " deleteYesOrNo if [ "$deleteYesOrNo" = "y" ] || [ "$deleteYesOrNo" = "Y" ]; then @@ -52,9 +54,11 @@ elif [[ "$1" == "comicbookreadermount" ]]; then ifuse --documents com.realvirtuality.Comic-Book-Reader "$MOUNTPOINT" elif [[ "$1" == "unmount" ]] || [[ "$1" == "umount" ]]; then fusermount -u "$MOUNTPOINT" + echo "Unmounted" removegphoto elif [[ "$1" == "force" ]]; then fusermount -uz "$MOUNTPOINT" + echo "Force unmounted" removegphoto fi