st-scrollback-mouse-20220127-2c5edf2.diff 894 B

1234567891011121314151617181920212223242526
  1. From b5d3351a21442a842e01e8c0317603b6890b379c Mon Sep 17 00:00:00 2001
  2. From: asparagii <michele.lambertucci1@gmail.com>
  3. Date: Thu, 27 Jan 2022 15:44:02 +0100
  4. Subject: [PATCH] st-scrollback-mouse
  5. ---
  6. config.def.h | 2 ++
  7. 1 file changed, 2 insertions(+)
  8. diff --git a/config.def.h b/config.def.h
  9. index e3b469b..c217315 100644
  10. --- a/config.def.h
  11. +++ b/config.def.h
  12. @@ -176,6 +176,8 @@ static uint forcemousemod = ShiftMask;
  13. */
  14. static MouseShortcut mshortcuts[] = {
  15. /* mask button function argument release */
  16. + { ShiftMask, Button4, kscrollup, {.i = 1} },
  17. + { ShiftMask, Button5, kscrolldown, {.i = 1} },
  18. { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
  19. { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
  20. { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
  21. --
  22. 2.34.1