summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2022-09-04 20:14:45 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2022-09-04 20:14:45 +0530
commit9e87513f847505cd22188018f12293f3c51c6098 (patch)
treef84a4750fc4b5d6c59912b85bedc604c3408d6ec
parent6fb6ed5b86a5de49d0da0d58525fe7cfb044892a (diff)
scroll config changes
-rw-r--r--config.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/config.h b/config.h
index 01e3974..e8a5d9b 100644
--- a/config.h
+++ b/config.h
@@ -222,8 +222,8 @@ static uint forcemousemod = ShiftMask;
*/
static MouseShortcut mshortcuts[] = {
/* mask button function argument release */
- { ShiftMask, Button4, kscrollup, {.i = 1} },
- { ShiftMask, Button5, kscrolldown, {.i = 1} },
+ { MODKEY, Button4, kscrollup, {.i = 1} },
+ { MODKEY, Button5, kscrolldown, {.i = 1} },
{ XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 },
{ ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} },
{ XK_ANY_MOD, Button4, ttysend, {.s = "\031"} },
@@ -240,13 +240,21 @@ static Shortcut shortcuts[] = {
{ TERMMOD, XK_Prior, zoom, {.f = +1} },
{ TERMMOD, XK_Next, zoom, {.f = -1} },
{ TERMMOD, XK_Home, zoomreset, {.f = 0} },
- { TERMMOD, XK_C, clipcopy, {.i = 0} },
+//setting vim keys (j,k) for zooming and u for reset
+ { TERMMOD, XK_J, zoom, {.f = -1} },
+ { TERMMOD, XK_K, zoom, {.f = +1} },
+ { TERMMOD, XK_U, zoomreset, {.f = 0} },
+ { TERMMOD, XK_C, clipcopy, {.i = 0} },
{ TERMMOD, XK_V, clippaste, {.i = 0} },
{ TERMMOD, XK_Y, selpaste, {.i = 0} },
{ ShiftMask, XK_Insert, selpaste, {.i = 0} },
{ TERMMOD, XK_Num_Lock, numlock, {.i = 0} },
- { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} },
- { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} },
+//setting modkey(Alt key) + arrow keys to scroll thru single lines of code
+ { MODKEY, XK_Up, kscrollup, {.i = 1} },
+ { MODKEY, XK_Down, kscrolldown, {.i = 1} },
+//to scroll thru terminal page-wise
+ { MODKEY, XK_Page_Up, kscrollup, {.i = -1} },
+ { MODKEY, XK_Page_Down, kscrolldown, {.i = -1} },
};
/*