diff options
author | Luke Smith <luke@lukesmith.xyz> | 2019-05-08 11:26:11 -0400 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2019-05-08 11:26:11 -0400 |
commit | 84d49f527d9700857d933cac52284173c79afb1d (patch) | |
tree | a93c5ef5428dda7566c460a776685706ccaf60cc /config.h | |
parent | 140c6b0a3f56e689f85728548469402e928ade30 (diff) |
copy output of command with alt-o
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -217,6 +217,8 @@ static char *copyurlcmd[] = { "/bin/sh", "-c", "sed 's/.*│//g' | tr -d '\n' | grep -aEo '((http|https)://|www\\.)[a-zA-Z0-9./&?=_-]*' | uniq | sed 's/^www./http:\\/\\/www\\./g' | dmenu -p 'Copy which url?' -l 10 | tr -d '\n' | xclip -selection clipboard", "externalpipe", NULL }; +static char *copyoutput[] = { "/bin/sh", "-c", "st-copyout", "externalpipe", NULL }; + static Shortcut shortcuts[] = { /* mask keysym function argument */ { XK_ANY_MOD, XK_Break, sendbreak, {.i = 0} }, @@ -250,6 +252,7 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_D, zoom, {.f = -2} }, { MODKEY, XK_l, externalpipe, {.v = openurlcmd } }, { MODKEY, XK_y, externalpipe, {.v = copyurlcmd } }, + { MODKEY, XK_o, externalpipe, {.v = copyoutput } }, }; /* |