summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Enders <senders@spotify.com>2020-06-01 10:18:22 -0400
committerSteph Enders <smenders@gmail.com>2023-02-26 03:24:26 -0500
commitca99b7287010b6e1397c6cbf99395ec66cf21526 (patch)
tree498312caffc03457db28a1ea9d88f5648af688a9
parent70118d5eeead128d232f1495396d49536163bad3 (diff)
Applied mousewheel scrollback custom patch
The patches set in the patch page: https://st.suckless.org/patches/scrollback/ do not work currently they all have some conflicts. This seems to allow middlewheel scrolling with shift key + middle button so works okay :)
-rw-r--r--config.def.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index e3b469b..e33676a 100644
--- a/config.def.h
+++ b/config.def.h
@@ -177,9 +177,9 @@ static uint forcemousemod = ShiftMask;
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
- { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
+ { ShiftMask, Button4, kscrollup, {.i = 1} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
- { ShiftMask, Button5, ttysend, {.s = "\033[6;2~"} },
+ { ShiftMask, Button5, kscrolldown, {.i = 0} },
{ XK_ANY_MOD, Button5, ttysend, {.s = "\005"} },
};