diff options
author | xyz <gky44px1999@gmail.com> | 2021-11-06 00:42:04 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-11-06 00:42:04 -0700 |
commit | 1429d9bdf446c2d6272925a4dc029215a24ea81b (patch) | |
tree | cb868c75bdf8d45e1a369c3e2c9010a9ddbf7736 /home/xyz/.config/nsxiv | |
parent | ea1d5f4388a793ea1c1c1d13b978fe7881147789 (diff) |
use printf %q
Diffstat (limited to 'home/xyz/.config/nsxiv')
-rwxr-xr-x | home/xyz/.config/nsxiv/exec/key-handler | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/home/xyz/.config/nsxiv/exec/key-handler b/home/xyz/.config/nsxiv/exec/key-handler index 80dd82f0..cfac0301 100755 --- a/home/xyz/.config/nsxiv/exec/key-handler +++ b/home/xyz/.config/nsxiv/exec/key-handler @@ -59,6 +59,6 @@ case "$1" in "p") tr '\n' '\0' | xargs -0 sh -c 'convert "$@" $(time.uuid).pdf' shell ;; "r") rotate ;; "w") tr '\n' '\0' | xargs -0 shufwall ;; - "y") tr '\n' '\0' | xargs -0 realpath | xsel -b ;; + "y") tr '\n' '\0' | xargs -0 realpath | tr '\n' '\0' | xargs -0 printf '%q ' | xsel -ib ;; esac |