[wiki] [sites] Added rightclickpaste patch for st-0.9 || Elliot Weishaar

From: <git_AT_suckless.org>
Date: Fri, 15 Sep 2023 21:06:00 +0200

commit 7db5ae7f9e6b573844396491b0e1d7eb16d23654
Author: Elliot Weishaar <elliotweishaar27_AT_gmail.com>
Date: Fri Sep 15 14:05:17 2023 -0500

    Added rightclickpaste patch for st-0.9

diff --git a/st.suckless.org/patches/rightclickpaste/index.md b/st.suckless.org/patches/rightclickpaste/index.md
index 058ae92e..558b1b54 100644
--- a/st.suckless.org/patches/rightclickpaste/index.md
+++ b/st.suckless.org/patches/rightclickpaste/index.md
_AT_@ -10,7 +10,9 @@ Middle-click does nothing.
 Download
 --------
 * [st-rightclickpaste-0.8.2.diff](st-rightclickpaste-0.8.2.diff)
+* [st-rightclickpaste-0.9.diff](st-rightclickpaste-0.9.diff)
 
 Authors
 -------
 * Aleksandrs Stier - <aleks.stier_AT_icloud.com>
+* Elliot Weishaar - <elliotweishaar27_AT_gmail.com>
diff --git a/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.9.diff b/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.9.diff
new file mode 100644
index 00000000..9b3cb2c8
--- /dev/null
+++ b/st.suckless.org/patches/rightclickpaste/st-rightclickpaste-0.9.diff
_AT_@ -0,0 +1,26 @@
+From 07127e600a2854241f08ef976a45aea910cd1238 Mon Sep 17 00:00:00 2001
+From: Elliot Weishaar <elliotweishaar27_AT_gmail.com>
+Date: Fri, 15 Sep 2023 13:48:34 -0500
+Subject: [PATCH] Pressing right-click pastes from the primary section. If
+ combined with the clibpoard-patch right-click pastes from the clipboard
+
+---
+ st/config.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/st/config.h b/st/config.h
+index 968ad8f..3bee657 100644
+--- a/st/config.h
++++ b/st/config.h
+_AT_@ -176,7 +176,7 @@ static uint forcemousemod = ShiftMask;
+ */
+ static MouseShortcut mshortcuts[] = {
+ /* mask button function argument release */
+- { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
++ { XK_ANY_MOD, Button3, selpaste, {.i = 0}, 1 },
+ { ShiftMask, Button4, ttysend, {.s = "[5;2~"} },
+ { XK_ANY_MOD, Button4, ttysend, {.s = ""} },
+ { ShiftMask, Button5, ttysend, {.s = "[6;2~"} },
+--
+2.39.2
+
Received on Fri Sep 15 2023 - 21:06:00 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 15 2023 - 21:13:11 CEST