Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Add keybinds to make zooming and scrolling easier
Browse files Browse the repository at this point in the history
  • Loading branch information
Toasterbirb committed Aug 16, 2023
1 parent bf6e081 commit 917b431
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions st/config.def.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ static Shortcut shortcuts[] = {
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
{ TERMMOD, XK_Next, zoom, {.f = -1} },
{ TERMMOD, XK_L, zoom, {.f = +1} },
{ TERMMOD, XK_H, zoom, {.f = -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
Expand All @@ -209,6 +211,8 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
{ ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
{ TERMMOD, XK_K, kscrollup, {.i = 2} },
{ TERMMOD, XK_J, kscrolldown, {.i = 2} },
};

/*
Expand Down

0 comments on commit 917b431

Please sign in to comment.