aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-12-10 19:51:15 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2021-12-10 19:51:15 +0100
commitd179f0c8d103bdbfe20b449aec88a8e7b3afe1f3 (patch)
tree8dd7e0e0eeea5aee8910bd19b8ee1cbfe61b8eef
parentf5af8e736119b2ed79957abe4e05984d10de97df (diff)
downloadconfigs-d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3.tar.gz
configs-d179f0c8d103bdbfe20b449aec88a8e7b3afe1f3.zip
Removed image preview from sxiv moving command.
-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" & ;;