diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2021-12-10 19:51:15 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2021-12-10 19:51:15 +0100 |
commit | d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3 (patch) | |
tree | 8dd7e0e0eeea5aee8910bd19b8ee1cbfe61b8eef | |
parent | f5af8e736119b2ed79957abe4e05984d10de97df (diff) | |
download | configs-d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3.tar.gz configs-d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3.zip |
Removed image preview from sxiv moving command.
-rwxr-xr-x | stow/sxiv/.config/sxiv/exec/key-handler | 4 |
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" & ;; |