[wiki] [sites] [st][patches] updated scrollback-mouse and -increment for 0.9.2 || Jernej Jakob

From: <git_AT_suckless.org>
Date: Mon, 01 Jul 2024 14:23:57 +0200

commit 3919de58931e6efc09f0fe336f19cdacf239e9d8
Author: Jernej Jakob <jernej.jakob_AT_gmail.com>
Date: Mon Jul 1 14:21:15 2024 +0200

    [st][patches] updated scrollback-mouse and -increment for 0.9.2

diff --git a/st.suckless.org/patches/scrollback/index.md b/st.suckless.org/patches/scrollback/index.md
index 763899ce..748d870c 100644
--- a/st.suckless.org/patches/scrollback/index.md
+++ b/st.suckless.org/patches/scrollback/index.md
_AT_@ -39,6 +39,7 @@ using `Shift+MouseWheel`.
 * [st-scrollback-mouse-0.8.2.diff](st-scrollback-mouse-0.8.2.diff)
 * [st-scrollback-mouse-20191024-a2c479c.diff](st-scrollback-mouse-20191024-a2c479c.diff)
 * [st-scrollback-mouse-20220127-2c5edf2.diff](st-scrollback-mouse-20220127-2c5edf2.diff)
+* [st-scrollback-mouse-0.9.2.diff](st-scrollback-mouse-0.9.2.diff)
 
 Apply the following patch on top of the previous two to allow scrollback using
 mouse wheel only when not in `MODE_ALTSCREEN`. For example the content is being
_AT_@ -55,6 +56,7 @@ modifier for scrolling is not needed anymore. **Note: patches before
 Apply the following patch on top of the first two to allow changing how fast the mouse scrolls.
 
 * [st-scrollback-mouse-increment-0.8.2.diff](st-scrollback-mouse-increment-0.8.2.diff)
+* [st-scrollback-mouse-increment-0.9.2.diff](st-scrollback-mouse-increment-0.9.2.diff)
 
 Notes
 -----
diff --git a/st.suckless.org/patches/scrollback/st-scrollback-mouse-0.9.2.diff b/st.suckless.org/patches/scrollback/st-scrollback-mouse-0.9.2.diff
new file mode 100644
index 00000000..a956d2bc
--- /dev/null
+++ b/st.suckless.org/patches/scrollback/st-scrollback-mouse-0.9.2.diff
_AT_@ -0,0 +1,25 @@
+From 6b7e7e6c5c44dd6347ad49691b80d808c1b0cb77 Mon Sep 17 00:00:00 2001
+From: Jernej Jakob <jernej.jakob_AT_gmail.com>
+Date: Mon, 1 Jul 2024 14:00:02 +0200
+Subject: [PATCH] [st][patch] Update st-scrollback-mouse for 0.9.2
+
+---
+ config.def.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/config.def.h b/config.def.h
+index 8b25d40..d259675 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -176,6 +176,8 @@ static uint forcemousemod = ShiftMask;
+ */
+ static MouseShortcut mshortcuts[] = {
+ /* mask button function argument release */
++ { ShiftMask, Button4, kscrollup, {.i = 1} },
++ { ShiftMask, Button5, kscrolldown, {.i = 1} },
+ { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
+ { ShiftMask, Button4, ttysend, {.s = "[5;2~"} },
+ { XK_ANY_MOD, Button4, ttysend, {.s = ""} },
+--
+2.44.2
+
diff --git a/st.suckless.org/patches/scrollback/st-scrollback-mouse-increment-0.9.2.diff b/st.suckless.org/patches/scrollback/st-scrollback-mouse-increment-0.9.2.diff
new file mode 100644
index 00000000..97689d37
--- /dev/null
+++ b/st.suckless.org/patches/scrollback/st-scrollback-mouse-increment-0.9.2.diff
_AT_@ -0,0 +1,30 @@
+From bf7f0cf6ff2b47c65f750de6e30dce09a34f9201 Mon Sep 17 00:00:00 2001
+From: Jernej Jakob <jernej.jakob_AT_gmail.com>
+Date: Mon, 1 Jul 2024 14:02:36 +0200
+Subject: [PATCH] [st][patch] Update st-scrollback-mouse-increment for 0.9.2
+
+---
+ config.def.h | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/config.def.h b/config.def.h
+index d259675..0c427ee 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -174,10 +174,11 @@ static uint forcemousemod = ShiftMask;
+ * Internal mouse shortcuts.
+ * Beware that overloading Button1 will disable the selection.
+ */
++const unsigned int mousescrollincrement = 1;
+ static MouseShortcut mshortcuts[] = {
+ /* mask button function argument release */
+- { ShiftMask, Button4, kscrollup, {.i = 1} },
+- { ShiftMask, Button5, kscrolldown, {.i = 1} },
++ { ShiftMask, Button4, kscrollup, {.i = mousescrollincrement} },
++ { ShiftMask, Button5, kscrolldown, {.i = mousescrollincrement} },
+ { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
+ { ShiftMask, Button4, ttysend, {.s = "[5;2~"} },
+ { XK_ANY_MOD, Button4, ttysend, {.s = ""} },
+--
+2.44.2
+
Received on Mon Jul 01 2024 - 14:23:57 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 01 2024 - 14:24:51 CEST