diff options
author | shmibs <shmibs@gmail.com> | 2014-05-21 08:26:56 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-05-21 08:26:56 -0700 |
commit | a995874431c74929a8ac26ddaf96741429e6382d (patch) | |
tree | 0c910b426ba3d72d0578dd35d2c65e1b3712a3cc /.config/sxiv/exec/key-handler | |
parent | b77c909e0c03638004ba2e04f283934da8058d37 (diff) | |
download | dotfiles-a995874431c74929a8ac26ddaf96741429e6382d.tar.gz |
minor updates
nothing important to see here
Diffstat (limited to '.config/sxiv/exec/key-handler')
-rwxr-xr-x | .config/sxiv/exec/key-handler | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 592f365..30b05a8 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -18,8 +18,8 @@ case "$1" in notify-send "uploading $(basename $2) to /tmp/ failed" else name=$(echo "http://shmibbles.me/tmp/$(basename $2)" | sed 's/ /%20/g') - echo "$name" | xclip -i -selection clipboard - echo "$name" | xclip -i -selection primary + echo "$name" | tr -d '\n' | xclip -i -selection clipboard + echo "$name" | tr -d '\n' | xclip -i -selection primary notify-send "uploaded $(basename $2) to /tmp/" fi ;; @@ -29,8 +29,8 @@ case "$1" in notify-send "uploading $(basename $2) to /img/ failed" else name=$(echo "http://shmibbles.me/img/$(basename $2)" | sed 's/ /%20/g') - echo "$name" | xclip -i -selection clipboard - echo "$name" | xclip -i -selection primary + echo "$name" | tr -d '\n' | xclip -i -selection clipboard + echo "$name" | tr -d '\n' | xclip -i -selection primary notify-send "uploaded $(basename $2) to /img/" fi ;; |