From 83b440acc2518d77c70be21e4d6b1e1cb4365005 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Wed, 6 Jan 2016 20:53:13 +0100 Subject: Backlog limit --- config.def.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index fd09d72..db0bf24 100644 --- a/config.def.h +++ b/config.def.h @@ -7,6 +7,7 @@ */ static char font[] = "Liberation Mono:pixelsize=12:antialias=true:autohint=true"; static int borderpx = 2; +#define histsize 2000 /* * What program is execed by st depends of these precedence rules: @@ -136,8 +137,14 @@ static unsigned int defaultunderline = 7; */ static MouseShortcut mshortcuts[] = { /* button mask string */ - { Button4, XK_ANY_MOD, "\031" }, - { Button5, XK_ANY_MOD, "\005" }, + { Button4, XK_NO_MOD, "\031" }, + { Button5, XK_NO_MOD, "\005" }, +}; + +static MouseKey mkeys[] = { + /* button mask function argument */ + { Button4, ShiftMask, kscrollup, {.i = 1} }, + { Button5, ShiftMask, kscrolldown, {.i = 1} }, }; /* Internal keyboard shortcuts. */ @@ -157,6 +164,8 @@ static Shortcut shortcuts[] = { { MODKEY|ShiftMask, XK_C, clipcopy, {.i = 0} }, { MODKEY|ShiftMask, XK_V, clippaste, {.i = 0} }, { MODKEY, XK_Num_Lock, numlock, {.i = 0} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* -- cgit v1.2.3