From ca99b7287010b6e1397c6cbf99395ec66cf21526 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Mon, 1 Jun 2020 10:18:22 -0400 Subject: 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 :) --- config.def.h | 4 ++-- 1 file 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"} }, }; -- cgit v1.2.3-54-g00ecf