Browse Source

add clipboard related patch, fix filenames

master
Von Random 4 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.
6 6
 Includes:
7 7
 * [st-boxdraw_v2-0.8.2.diff](https://st.suckless.org/patches/boxdraw/) - draw beautiful pseudo graphic lines instead of whatever your font provides
8 8
 * st-bright-bold-text.patch - make non-colored bold text brigh
9
+* 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
9 10
 * st-disable-bold-italic-fonts.patch - actually disable bold, italic or bold italic font styles
10 11
 * st-disable-intensity-styles.patch - disable so called "intensity styles", do not make colored bold text bright
11 12
 * makest - a simple script to apply all the patches and build st

+ 3
- 2
makest View File

@@ -1,11 +1,12 @@
1 1
 #!/usr/bin/env zsh
2
-set -x
2
+set -x -e
3 3
 ST_REPO=https://git.suckless.org/st
4 4
 ST_SRC=$PWD/st
5 5
 ST_CFG=$PWD/config.h
6 6
 PATCHLIST=(
7
-    st-boxdraw_v2-0.8.2.patch
7
+    st-boxdraw_v2-0.8.2.diff
8 8
     st-bright-bold-text.patch
9
+    st-clipboard.patch
9 10
     st-disable-bold-italic-fonts.patch
10 11
     st-disable-intensity-styles.patch
11 12
 )

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 @@
1
+diff --git a/x.c b/x.c
2
+index 5828a3b..84c4f03 100644
3
+--- a/x.c
4
++++ b/x.c
5
+@@ -631,6 +631,8 @@ setsel(char *str, Time t)
6
+ 	XSetSelectionOwner(xw.dpy, XA_PRIMARY, xw.win, t);
7
+ 	if (XGetSelectionOwner(xw.dpy, XA_PRIMARY) != xw.win)
8
+ 		selclear();
9
++
10
++	clipcopy(NULL);
11
+ }
12
+ 
13
+ void
14
+@@ -647,7 +649,9 @@ brelease(XEvent *e)
15
+ 		return;
16
+ 	}
17
+ 
18
+-	if (e->xbutton.button == Button2)
19
++	if (e->xbutton.button == Button3)
20
++		clippaste(NULL);
21
++	else if (e->xbutton.button == Button2)
22
+ 		selpaste(NULL);
23
+ 	else if (e->xbutton.button == Button1)
24
+ 		mousesel(e, 1);

Loading…
Cancel
Save