From 35316c9c001ba155e160ba70e68fd71143457f55 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 10 Apr 2022 15:01:22 -0400 Subject: [PATCH] close #1106 --- .config/sxiv/exec/key-handler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 3d9565f..f3dd7dc 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -1,5 +1,5 @@ #!/bin/sh -while read file +while read -r file do case "$1" in "w") setbg "$file" & ;; @@ -20,7 +20,7 @@ do "f") convert -flop "$file" "$file" ;; "y") - echo -n "$file" | tr -d '\n' | xclip -selection clipboard && + printf "%s" "$file" | tr -d '\n' | xclip -selection clipboard && notify-send "$file copied to clipboard" & ;; "Y") readlink -f "$file" | tr -d '\n' | xclip -selection clipboard &&