From d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Fri, 10 Dec 2021 19:51:15 +0100 Subject: Removed image preview from sxiv moving command. --- stow/sxiv/.config/sxiv/exec/key-handler | 4 +--- 1 file changed, 1 insertion(+), 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" & ;; -- cgit v1.2.1