diff options
author | katherine <shmibs@shmibbles.me> | 2016-03-21 13:18:12 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-03-21 13:18:12 -0700 |
commit | 2ced03ad83e356ff882a00f8dcfc999237d4f117 (patch) | |
tree | 8d6715e4ed6b9c4bfbc790cd81bc13373c91732a | |
parent | e6a72c0f9a021ac462857669d06456c1b9d50ee1 (diff) | |
download | dotfiles-2ced03ad83e356ff882a00f8dcfc999237d4f117.tar.gz |
use name when sending 1 file
-rwxr-xr-x | .config/sxiv/exec/key-handler | 6 |
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 ;; *) |