diff --git a/Makefile b/Makefile index 0e887b5..206c345 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,6 @@ OBJ = $(SRC:.c=.o) all: st -tooling: compile_commands.json - config.h: cp config.def.h config.h diff --git a/config.h b/config.h index 1b26953..f997cb6 100644 --- a/config.h +++ b/config.h @@ -170,12 +170,16 @@ static unsigned int defaultattr = 11; */ static uint forcemousemod = ShiftMask; +const unsigned int scrollInterval = 4; + /* * Internal mouse shortcuts. * Beware that overloading Button1 will disable the selection. */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { ShiftMask, Button4, kscrollup, {.i = scrollInterval} }, + { ShiftMask, Button5, kscrolldown, {.i = scrollInterval} }, { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },