aboutsummaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-17 20:18:52 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-17 20:18:52 +0100
commit6b9616595d831f64ddb175d1a3e8d25a4886a8f0 (patch)
tree3de843abfd61e66709dc348a3ad7b529e8bff1eb /config.h
parentChanged font again (diff)
downloadst-6b9616595d831f64ddb175d1a3e8d25a4886a8f0.tar.gz
st-6b9616595d831f64ddb175d1a3e8d25a4886a8f0.tar.bz2
st-6b9616595d831f64ddb175d1a3e8d25a4886a8f0.tar.xz
st-6b9616595d831f64ddb175d1a3e8d25a4886a8f0.tar.zst
st-6b9616595d831f64ddb175d1a3e8d25a4886a8f0.zip
cpyout ported for FreeBSD
Diffstat (limited to 'config.h')
-rw-r--r--config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.h b/config.h
index c78b436..bdeb228 100644
--- a/config.h
+++ b/config.h
@@ -207,6 +207,7 @@ static char *cpyurlcmd[] = { "/bin/sh", "-c",
"tmp=$(sed 's/.*│//g' | tr -d '\n' | grep -aEo '(((http|https|gopher|gemini|ftp|ftps|git)://|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 -l 10 | tr -d '\n' | xclip -selection clipboard",
"externalpipe", NULL };
static char *cpyoutcmd[] = { "/bin/sh", "-c", "/usr/local/bin/st-cpyout", "externalpipe", NULL };
+static char *cpyoutnopcmd[] = { "/bin/sh", "-c", "/usr/local/bin/st-cpyout noprompt", "externalpipe", NULL };
static Shortcut shortcuts[] = {
/* mask keysym function argument */
@@ -230,6 +231,7 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_J, kscrolldown, {.i = 1} },
{ TERMMOD, XK_Y, externalpipe, {.v = cpyurlcmd} },
{ TERMMOD, XK_O, externalpipe, {.v = cpyoutcmd} },
+ { TERMMOD, XK_P, externalpipe, {.v = cpyoutnopcmd} },
};
/*