From 2ced03ad83e356ff882a00f8dcfc999237d4f117 Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 21 Mar 2016 13:18:12 -0700 Subject: use name when sending 1 file --- .config/sxiv/exec/key-handler | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to '.config/sxiv') 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 ;; *) -- cgit v1.2.3