Skip to content

Commit

Permalink
osc133 - changing default configuration options to Ctrl + PgUp/PgDown
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkeby committed Oct 1, 2024
1 parent 398aeb1 commit c9390f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down
4 changes: 3 additions & 1 deletion patch/osc133.c
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit c9390f2

Please sign in to comment.