add clipboard related patch, fix filenames
This commit is contained in:
parent
13e612e8a7
commit
dfdad97cae
4 changed files with 28 additions and 2 deletions
|
@ -6,6 +6,7 @@ A personal set of st configuration and patches because why the fuck not.
|
||||||
Includes:
|
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-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-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-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
|
* 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
|
* makest - a simple script to apply all the patches and build st
|
||||||
|
|
5
makest
5
makest
|
@ -1,11 +1,12 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
set -x
|
set -x -e
|
||||||
ST_REPO=https://git.suckless.org/st
|
ST_REPO=https://git.suckless.org/st
|
||||||
ST_SRC=$PWD/st
|
ST_SRC=$PWD/st
|
||||||
ST_CFG=$PWD/config.h
|
ST_CFG=$PWD/config.h
|
||||||
PATCHLIST=(
|
PATCHLIST=(
|
||||||
st-boxdraw_v2-0.8.2.patch
|
st-boxdraw_v2-0.8.2.diff
|
||||||
st-bright-bold-text.patch
|
st-bright-bold-text.patch
|
||||||
|
st-clipboard.patch
|
||||||
st-disable-bold-italic-fonts.patch
|
st-disable-bold-italic-fonts.patch
|
||||||
st-disable-intensity-styles.patch
|
st-disable-intensity-styles.patch
|
||||||
)
|
)
|
||||||
|
|
24
st-clipboard.patch
Normal file
24
st-clipboard.patch
Normal file
|
@ -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);
|
Loading…
Reference in a new issue