summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-20 03:20:29 -0600
committerzachir <zachir@librem.one>2023-02-20 03:20:29 -0600
commit543d377de17a506b23357c4467e6e2d77a75afdb (patch)
tree74becbc6e0f8b776e41aaaa7585df3c232f6ebc4
parentcaabf93cf05b4f1aae0ee414657b179645423fb3 (diff)
add scrollback-mouse patch
-rw-r--r--config.def.h2
-rw-r--r--patches/st-scrollback-mouse-20220127-2c5edf2.diff25
2 files changed, 27 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 1660264..3756c77 100644
--- a/config.def.h
+++ b/config.def.h
@@ -202,6 +202,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 = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
diff --git a/patches/st-scrollback-mouse-20220127-2c5edf2.diff b/patches/st-scrollback-mouse-20220127-2c5edf2.diff
new file mode 100644
index 0000000..5c47abc
--- /dev/null
+++ b/patches/st-scrollback-mouse-20220127-2c5edf2.diff
@@ -0,0 +1,25 @@
+From b5d3351a21442a842e01e8c0317603b6890b379c Mon Sep 17 00:00:00 2001
+From: asparagii <michele.lambertucci1@gmail.com>
+Date: Thu, 27 Jan 2022 15:44:02 +0100
+Subject: [PATCH] st-scrollback-mouse
+
+---
+ config.def.h | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/config.def.h b/config.def.h
+index e3b469b..c217315 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -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 = "\033[5;2~"} },
+ { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
+--
+2.34.1
+