diff options
author | Shipwreckt <shipwreckt@mailfence.com> | 2025-02-22 07:10:10 +0000 |
---|---|---|
committer | Shipwreckt <shipwreckt@mailfence.com> | 2025-02-22 07:10:10 +0000 |
commit | 971bbb74a02f83650c8cd0550fb91886c4d460fe (patch) | |
tree | d0d56e38ba28ddf37866ceb6b275ff5de48a0e40 /files/config/suckless/scroll/config.def.h | |
parent | 749b69e71e0475bcf1f4d7067414f55f830c9e8d (diff) |
2nd initial commit
Diffstat (limited to 'files/config/suckless/scroll/config.def.h')
-rw-r--r-- | files/config/suckless/scroll/config.def.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/files/config/suckless/scroll/config.def.h b/files/config/suckless/scroll/config.def.h new file mode 100644 index 0000000..536db70 --- /dev/null +++ b/files/config/suckless/scroll/config.def.h @@ -0,0 +1,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 */ +}; |