summaryrefslogtreecommitdiff
path: root/scroll-0.1/config.h
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
committerstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
commit2e81fbdf15168a5b6df291b7062d120156a5ce45 (patch)
tree57de36552c6f46e43d8520ccf65acb80ef5f6c29 /scroll-0.1/config.h
parent7a93f153bf5e088ab6e2da6fcc0518744cfd54af (diff)
Removed dwm scripts, sfm, , added scroll, and added dark theme to surf
Diffstat (limited to 'scroll-0.1/config.h')
-rw-r--r--scroll-0.1/config.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/scroll-0.1/config.h b/scroll-0.1/config.h
new file mode 100644
index 0000000..536db70
--- /dev/null
+++ b/scroll-0.1/config.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 */
+};