summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorYui Hirasawa2020-06-13 02:56:10 +1000
committerYui Hirasawa2020-06-13 02:56:10 +1000
commitb83faf078b50ba5d1b8526f3579e74dc22242e93 (patch)
tree581ef45d432e8c9f07b989ef43252e6875bd9778 /config.h
parent1b0a19d1ef1b3f1629a8ce67e71dd0be91e87636 (diff)
downloadst-b83faf078b50ba5d1b8526f3579e74dc22242e93.tar.gz
st-b83faf078b50ba5d1b8526f3579e74dc22242e93.zip
Added mouse scrolling (no modifier) patch
Diffstat (limited to 'config.h')
-rw-r--r--config.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/config.h b/config.h
index 2407a90..f55e60a 100644
--- a/config.h
+++ b/config.h
@@ -5,7 +5,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "Inconsolata:pixelsize=12:antialias=true:autohint=true:spacing=monospace";
+static char *font = "Inconsolata:size=14:antialias=true:autohint=true:spacing=monospace";
static int borderpx = 2;
/*
@@ -16,7 +16,7 @@ static int borderpx = 2;
* 4: value of shell in /etc/passwd
* 5: value of shell in config.h
*/
-static char *shell = "/bin/zsh";
+static char *shell = "/bin/sh";
char *utmp = NULL;
/* scroll program: to enable use a string like "scroll" */
char *scroll = NULL;
@@ -26,7 +26,7 @@ char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
char *vtiden = "\033[?6c";
/* Kerning / character bounding-box multipliers */
-static float cwscale = 0.33; // Querk of Inconsolata
+static float cwscale = 0.33;
static float chscale = 1.0;
/*
@@ -130,6 +130,7 @@ static unsigned int defaultcs = 256;
static unsigned int defaultrcs = 257;
+
/*
* Default shape of cursor
* 2: Block ("█")
@@ -172,9 +173,12 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
+ { XK_NO_MOD, Button4, kscrollup, {.i = 2}, 0, /* !alt */ -1 },
+ { XK_NO_MOD, Button5, kscrolldown, {.i = 2}, 0, /* !alt */ -1 },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
- {ControlMask, Button4, zoom, {.f = +1} },
- { ControlMask, Button5, zoom, {.f = -1} },
+ { ControlMask, Button4, zoom, {.f = +1} },
+ { ControlMask, Button5, zoom, {.f = -1} }
+
};
/* Internal keyboard shortcuts. */