From 893f132e403027cb50f6d422e27c61ba3bbff6b5 Mon Sep 17 00:00:00 2001 From: TiynGER Date: Mon, 24 May 2021 16:25:13 +0200 Subject: [PATCH] scrolling: add scrolling with mouse --- README.md | 32 ++++++++++++++++++-------------- config.h | 2 ++ 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 6c8d87f..8006120 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # st This is my patched version of st. The base version is directly from suckless.org. +This belongs to my larbs installation script, but does not directly depend on it. +It is supposed to work in the environment after the larbs-base-installation. ## Patches @@ -15,20 +17,22 @@ The list below shows the currently applied patches to the master branch. There are various shortcuts and hotkeys used in this version. Included in my build are the following. -| ModKey | Shift | Key | Function | -|--------|-------|---------|-----------------| -| Alt | | Break | Send break | -| Alt | | Print | Toggle printer | -| Alt | | Print | Print screen | -| | Shift | Insert | Clipboard paste | -| Alt | | c | Clipboard copy | -| Alt | | v | Clipboard paste | -| Alt | | p | Selected paste | -| Alt | | NumLock | Toggle Numlock | -| Alt | | k | Scroll up | -| Alt | | j | Scroll down | -| Alt | Shift | u | Zoom in | -| Alt | Shift | i | Zoom out | +| ModKey | Shift | Key | Function | +| ------ | ----- | --------------- | --------------- | +| Alt | | Break | Send break | +| Alt | | Print | Toggle printer | +| Alt | | Print | Print screen | +| | Shift | Insert | Clipboard paste | +| Alt | | c | Clipboard copy | +| Alt | | v | Clipboard paste | +| Alt | | p | Selected paste | +| Alt | | NumLock | Toggle Numlock | +| Alt | | k | Scroll up | +| Alt | | j | Scroll down | +| | | MouseScrollUp | Scroll up | +| | | MouseScrollDown | Scroll down | +| Alt | Shift | u | Zoom in | +| Alt | Shift | i | Zoom out | ## Installation diff --git a/config.h b/config.h index 1396337..a4563d2 100644 --- a/config.h +++ b/config.h @@ -170,6 +170,8 @@ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ { Button4, XK_NO_MOD, "\031" }, { Button5, XK_NO_MOD, "\005" }, + { XK_NO_MOD, Button4, kscrollup, {.i = 1} }, + { XK_NO_MOD, Button5, kscrolldown,{.i = 1} }, }; /* Internal keyboard shortcuts. */