summaryrefslogtreecommitdiff
path: root/files/config/suckless/scroll/config.def.h
blob: 536db70693bce37993d91ba080e4ed2134d1e1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * Define ESC sequences to use for scroll events.
 * Use "cat -v" to figure out favorite key combination.
 *
 * lines is the number of lines scrolled up or down.
 * If lines is negative, it's the fraction of the terminal size.
 */

struct rule rules[] = {
	/* sequence     event        lines */
	{"\033[5;2~",   SCROLL_UP,   -1},	/* [Shift] + [PageUP] */
	{"\033[6;2~",   SCROLL_DOWN, -1},	/* [Shift] + [PageDown] */
	/* mouse binding shadows ^E and ^Y, so it's disabled by default */
	//{"\031",        SCROLL_UP,    1},	/* mouse wheel up */
	//{"\005",        SCROLL_DOWN,  1},	/* mouse wheel Down */
};