aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-03-21 13:18:12 -0700
committerkatherine <shmibs@shmibbles.me>2016-03-21 13:18:12 -0700
commit2ced03ad83e356ff882a00f8dcfc999237d4f117 (patch)
tree8d6715e4ed6b9c4bfbc790cd81bc13373c91732a /.config
parente6a72c0f9a021ac462857669d06456c1b9d50ee1 (diff)
downloaddotfiles-2ced03ad83e356ff882a00f8dcfc999237d4f117.tar.gz
use name when sending 1 file
Diffstat (limited to '.config')
-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
;;
*)