Apply keybindings for zoom

This commit is contained in:
Shourai 2020-07-18 12:50:44 +02:00
parent ea29931305
commit 066e1d364b

View File

@ -210,6 +210,13 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
{ MODKEY|ShiftMask, XK_Up, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_Down, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_K, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_J, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_plus, zoom, {.f = +1} },
{ MODKEY|ShiftMask, XK_underscore, zoom, {.f = -1} },
{ MODKEY|ShiftMask, XK_parenright, zoomreset, {.f = 0} },
};
/*
@ -251,6 +258,9 @@ static uint ignoremod = Mod2Mask|XK_SWITCH_MOD;
*/
static Key key[] = {
/* keysym mask string appkey appcursor */
{ XK_parenright, Mod1Mask|ShiftMask,"\033[41;6u", 0, 0},
{ XK_underscore, Mod1Mask|ShiftMask,"\033[95;4u", 0, 0},
{ XK_plus, Mod1Mask|ShiftMask,"\033[43;4u", 0, 0},
{ XK_KP_Home, ShiftMask, "\033[2J", 0, -1},
{ XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1},
{ XK_KP_Home, XK_ANY_MOD, "\033[H", 0, -1},