From a5fd336f73a6a95d17e390495415200fcaf4c815 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 16 Mar 2017 15:43:19 -0500 Subject: [PATCH] Added a key combo for copying URLs into the clipboard --- PKGBUILD | 2 +- tl-config.diff | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 60f9026..b22d88c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -16,7 +16,7 @@ source=(git://git.suckless.org/st st-externalpipe.diff::http://st.suckless.org/patches/st-externalpipe-20161125-e448324.diff st-hidecursor.diff::http://st.suckless.org/patches/st-hidecursor-20160727-308bfbf.diff) md5sums=('SKIP' - 'e19ad498fa62e62de6fe6013d0bff62c' + 'd097c0d6327c5df49ea49000b8f248e1' 'c54c87489342b8d77c6dd8f3c2ff997e' '8ff8a77b34dfc09a4dd0d2cf876d68e7') diff --git a/tl-config.diff b/tl-config.diff index 6734c69..cdbe8e7 100644 --- a/tl-config.diff +++ b/tl-config.diff @@ -1,5 +1,5 @@ ---- a/config.h 2017-01-18 12:28:57.057151443 -0600 -+++ b/config.h 2017-01-18 13:08:33.104482488 -0600 +--- a/config.h 2017-03-16 15:22:46.638368708 -0500 ++++ b/config.h 2017-03-16 15:31:48.438413697 -0500 @@ -5,7 +5,7 @@ * * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html @@ -88,7 +88,7 @@ /* * Default shape of cursor -@@ -164,20 +163,21 @@ +@@ -164,20 +163,22 @@ #define MODKEY Mod1Mask static Shortcut shortcuts[] = { @@ -120,6 +120,7 @@ + { ControlMask|ShiftMask, XK_V, clippaste, {.i = 0} }, + { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, + { ControlMask|ShiftMask, XK_X, externalpipe, {.v = "xurls | tac | dmenu -l 10 | xargs -r chromium" } }, ++ { ControlMask|ShiftMask, XK_Z, externalpipe, {.v = "xurls | tac | dmenu -l 10 -p 'Copy URL:' | xsel -ib" } }, + { ControlMask|ShiftMask, XK_U, iso14755, {.i = 0} }, };