Browse Source

add clipboard related patch, fix filenames

master
Von Random 6 months ago
parent
commit
dfdad97cae
4 changed files with 28 additions and 2 deletions
  1. 1
    0
      README.md
  2. 3
    2
      makest
  3. 0
    0
      st-boxdraw_v2-0.8.2.diff
  4. 24
    0
      st-clipboard.patch

+ 1
- 0
README.md View File

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

+ 3
- 2
makest View File

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

st-boxdraw_v2-0.8.2.patch → st-boxdraw_v2-0.8.2.diff View File


+ 24
- 0
st-clipboard.patch View 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…
Cancel
Save