summaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorTill Höppner2016-01-06 20:53:13 +0100
committerTill Höppner2016-01-06 20:53:13 +0100
commit83b440acc2518d77c70be21e4d6b1e1cb4365005 (patch)
treeebe9e95df1e9a1de465f53facfa64c29139115d8 /config.def.h
parent610723a58f1fbd3c5d911c853a8b94c315fc7c2a (diff)
downloadst-master.tar.gz
st-master.tar.xz
st-master.zip
Backlog limitHEADmaster
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h13
1 files changed, 11 insertions, 2 deletions
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} },
};
/*