From 9059114a15d890641416b051ebe45be47c669387 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 19 Sep 2023 15:21:40 -0400 Subject: [PATCH] make the zoomrate configurable This commit makes the rate that st zooms configurable. --- config.def.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 1615386..ea7fb28 100644 --- a/config.def.h +++ b/config.def.h @@ -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} },