make the zoomrate configurable

This commit makes the rate that st zooms configurable.
master
Ryan 2023-09-19 15:21:40 -04:00
parent bfdd78f62e
commit 9059114a15
Signed by: ryan
GPG Key ID: 7D7E2E94267DAD95
1 changed files with 7 additions and 2 deletions

View File

@ -182,6 +182,11 @@ static uint forcemousemod = ShiftMask;
*/
const unsigned int mousescrollrate = 1;
/*
* The rate to zoom in (adjust the font size).
*/
const int zoomrate = 1;
/*
* Internal mouse shortcuts.
* Beware that overloading Button1 will disable the selection.
@ -207,8 +212,8 @@ static Shortcut shortcuts[] = {
{ ControlMask, XK_Print, toggleprinter, {.i = 0} },
{ ShiftMask, XK_Print, printscreen, {.i = 0} },
{ XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
{ TERMMOD, XK_Next, zoom, {.f = -1} },
{ TERMMOD, XK_Prior, zoom, {.f = zoomrate * +1} },
{ TERMMOD, XK_Next, zoom, {.f = zoomrate * -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
{ TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },