summaryrefslogtreecommitdiffstats
path: root/.config/sxiv/exec
diff options
context:
space:
mode:
Diffstat (limited to '.config/sxiv/exec')
-rwxr-xr-x.config/sxiv/exec/key-handler4
1 files 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 &&