commit c9390f2ca7a9e4b8ec3d9c72e40b90ac09c03940
parent 398aeb1cd6c8d1d4c8c5461bc7cc421c2c442302
Author: Bakkeby <bakkeby@gmail.com>
Date: Tue, 1 Oct 2024 21:39:50 +0200
osc133 - changing default configuration options to Ctrl + PgUp/PgDown
Diffstat:
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -468,8 +468,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_X, invert, { 0 } },
#endif // INVERT_PATCH
#if OSC133_PATCH
- { TERMMOD, XK_Z, scrolltoprompt, {.i = -1}, S_PRI },
- { TERMMOD, XK_X, scrolltoprompt, {.i = 1}, S_PRI },
+ { ControlMask, XK_Page_Up, scrolltoprompt, {.i = -1}, S_PRI },
+ { ControlMask, XK_Page_Down, scrolltoprompt, {.i = 1}, S_PRI },
#endif // OSC133_PATCH
};
diff --git a/patch/osc133.c b/patch/osc133.c
@@ -1,4 +1,6 @@
-void scrolltoprompt(const Arg *arg) {
+void
+scrolltoprompt(const Arg *arg)
+{
int x, y;
#if REFLOW_PATCH
int top = term.scr - term.histf;