aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstow/sxiv/.config/sxiv/exec/key-handler4
1 files changed, 1 insertions, 3 deletions
diff --git a/stow/sxiv/.config/sxiv/exec/key-handler b/stow/sxiv/.config/sxiv/exec/key-handler
index ef81c79..27e9872 100755
--- a/stow/sxiv/.config/sxiv/exec/key-handler
+++ b/stow/sxiv/.config/sxiv/exec/key-handler
@@ -117,9 +117,7 @@ do
[ -z "$destdir" ] && destdir="$(selectPath.sh "Move image(s) to:")"
[ -z "$destdir" ] && exit
replace="Yes"
- if [ -e "$destdir""$file" ]; then
- dunstify -i "$destdir""$file" "Old:"
- dunstify -i "$(readlink -f "$file")" "New:"
+ if [ -e "${destdir}${file}" ]; then
replace="$(echo -e "No\nYes" | dmenu -i -p "Replace $file in $destdir?")"
fi
[ "$replace" = "Yes" ] && mv "$file" "$destdir" && dunstify -t 2000 -i "$destdir$file" "$file moved to $destdir" & ;;