summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-02-08 10:50:10 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-02-08 10:50:10 +0000
commitb4df2d1b007062b57ae9953156be9344dc6c50e4 (patch)
treead1ab4f4bb794affddc16ed99fbee74506010722 /config.def.h
parent98610fcd37f655d44586323dc86c1d013c2798ce (diff)
added scrolling to my personal st branch
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index 2cd740a..49b27d1 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 */
+ { XK_ANY_MOD, Button4, kscrollup, {.i = 1}, 0, /* !alt */ -1 },
+ { XK_ANY_MOD, Button5, kscrolldown, {.i = 1}, 0, /* !alt */ -1 },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
@@ -201,6 +203,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
+ { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
+ { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
};
/*