From 84d49f527d9700857d933cac52284173c79afb1d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Wed, 8 May 2019 11:26:11 -0400 Subject: copy output of command with alt-o --- config.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index be9a952..737be12 100644 --- a/config.h +++ b/config.h @@ -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 } }, }; /* -- cgit v1.2.3