diff options
author | Von Random <von@vdrandom.org> | 2019-03-07 19:06:22 +0300 |
---|---|---|
committer | Von Random <von@vdrandom.org> | 2019-03-07 19:06:22 +0300 |
commit | dfdad97cae14a2e6aec0a0d6c99983f4583dc57c (patch) | |
tree | f06ca7c15046e11ddb581bf1101c6150d1fb5569 | |
parent | 13e612e8a72ed788fdc4cae5665f2eac0885ffa6 (diff) |
add clipboard related patch, fix filenames
-rw-r--r-- | README.md | 1 | ||||
-rwxr-xr-x | makest | 5 | ||||
-rw-r--r-- | st-boxdraw_v2-0.8.2.diff (renamed from st-boxdraw_v2-0.8.2.patch) | 0 | ||||
-rw-r--r-- | st-clipboard.patch | 24 |
4 files changed, 28 insertions, 2 deletions
@@ -6,6 +6,7 @@ A personal set of st configuration and patches because why the fuck not. Includes: * [st-boxdraw_v2-0.8.2.diff](https://st.suckless.org/patches/boxdraw/) - draw beautiful pseudo graphic lines instead of whatever your font provides * st-bright-bold-text.patch - make non-colored bold text brigh +* st-clipboard.patch - copy to both selection and clipboard, paste from clipboard, based on [st-clipboard-0.8.2.diff](https://st.suckless.org/patches/clipboard/), with right click to copy from clipboard * st-disable-bold-italic-fonts.patch - actually disable bold, italic or bold italic font styles * st-disable-intensity-styles.patch - disable so called "intensity styles", do not make colored bold text bright * makest - a simple script to apply all the patches and build st @@ -1,11 +1,12 @@ #!/usr/bin/env zsh -set -x +set -x -e ST_REPO=https://git.suckless.org/st ST_SRC=$PWD/st ST_CFG=$PWD/config.h PATCHLIST=( - st-boxdraw_v2-0.8.2.patch + st-boxdraw_v2-0.8.2.diff st-bright-bold-text.patch + st-clipboard.patch st-disable-bold-italic-fonts.patch st-disable-intensity-styles.patch ) diff --git a/st-boxdraw_v2-0.8.2.patch b/st-boxdraw_v2-0.8.2.diff index 196818c..196818c 100644 --- a/st-boxdraw_v2-0.8.2.patch +++ b/st-boxdraw_v2-0.8.2.diff diff --git a/st-clipboard.patch b/st-clipboard.patch new file mode 100644 index 0000000..870eb40 --- /dev/null +++ b/st-clipboard.patch @@ -0,0 +1,24 @@ +diff --git a/x.c b/x.c +index 5828a3b..84c4f03 100644 +--- a/x.c ++++ b/x.c +@@ -631,6 +631,8 @@ setsel(char *str, Time t) + XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t); + if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win) + selclear(); ++ ++ clipcopy(NULL); + } + + void +@@ -647,7 +649,9 @@ brelease(XEvent *e) + return; + } + +- if (e->xbutton.button == Button2) ++ if (e->xbutton.button == Button3) ++ clippaste(NULL); ++ else if (e->xbutton.button == Button2) + selpaste(NULL); + else if (e->xbutton.button == Button1) + mousesel(e, 1); |