Added a key combo for copying URLs into the clipboard

This commit is contained in:
David Thurstenson 2017-03-16 15:43:19 -05:00
parent aa3b1283e6
commit a5fd336f73
2 changed files with 5 additions and 4 deletions

View File

@ -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')

View File

@ -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} },
};