surf

my build of surf
git clone git://git.ckyln.com/~cem/surf.git
Log | Files | Refs | README | LICENSE

commit eeefe0599ec6395f0cecda6e1bc417058e071499
parent 7e12d072a2716bad730a238c28b32e23109c5d7d
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 22 Nov 2019 21:53:08 +0300

add yanking

Diffstat:
Mconfig.def.h | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -158,6 +158,10 @@ static char *linkselect_newwin [] = { "/bin/sh", "-c", "surf_linkselect.sh $0 'Link (new window)' | xargs -r surf", winid, NULL }; +static char *yanklink [] = { "/bin/sh", "-c", + "surf_linkselect.sh $0 'Yank Link to clipboard' | xclip -selection clipboard", + winid, NULL +}; static char *editscreen[] = { "/bin/sh", "-c", "edit_screen.sh", NULL }; #define MODKEY GDK_CONTROL_MASK @@ -226,6 +230,7 @@ static Key keys[] = { { MODKEY , GDK_KEY_Return, spawn, SETURI("_SURF_GO") }, { MODKEY|GDK_SHIFT_MASK, GDK_KEY_e, externalpipe, { .v = editscreen } }, + { MODKEY, GDK_KEY_y, externalpipe, { .v = yanklink } }, { MODKEY, GDK_KEY_m, spawn, BM_ADD("_SURF_URI") }, };