aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/sxiv/exec/key-handler6
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler
index 32fa687..31d2e70 100755
--- a/.config/sxiv/exec/key-handler
+++ b/.config/sxiv/exec/key-handler
@@ -34,7 +34,11 @@ case "$1" in
if [[ $? -ne 0 ]]; then
notify-send "sxiv: send to /tmp/ failed"
else
- notify-send "sxiv: sent ${#files} images to /tmp/"
+ if [[ ${#files} -eq 1 ]]; then
+ notify-send "sxiv: sent ${files} to /tmp/"
+ else
+ notify-send "sxiv: sent ${#files} images to /tmp/"
+ fi
fi
;;
*)