From b83faf078b50ba5d1b8526f3579e74dc22242e93 Mon Sep 17 00:00:00 2001 From: Yui Hirasawa Date: Sat, 13 Jun 2020 02:56:10 +1000 Subject: Added mouse scrolling (no modifier) patch --- config.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'config.h') 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. */ -- cgit v1.2.3