diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-04-28 18:46:21 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-04-28 18:46:21 -0400 |
commit | ce7ef62c112ac9aaf0362ac9dd6cb8afb993aacd (patch) | |
tree | 5d99eb0f10356dab7487aa2df4c1a440a3ca7ca6 | |
parent | 3f44e88d6e1df1ee07e7acb4935498855ecb22d3 (diff) | |
parent | 9ce69b377a33350c01cbd44ce557b3c3a8520721 (diff) |
fix with upstream
-rw-r--r-- | config.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ MouseKey mkeys[] = { static char *openurlcmd[] = { "/bin/sh", "-c", "st-urlhandler", "externalpipe", NULL }; static char *copyurlcmd[] = { "/bin/sh", "-c", - "sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./@&%?$#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", + "tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https)://|www\\.)[a-zA-Z0-9.]*[:]?[a-zA-Z0-9./&%?$#=_-]*)|((magnet:\\?xt=urn:btih:)[a-zA-Z0-9]*)' | uniq | sed 's/^www./http:\\/\\/www\\./g' ); IFS=; [ ! -z $tmp ] && echo $tmp | dmenu -i -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", "externalpipe", NULL }; static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; |