st

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7186ee2ddd658ffea4aa25283c68c775c3d2dc03
parent 07bfca30099be0c45999aa69e9978e33d1f72932
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 16 Oct 2018 15:21:02 -0400

mouse bindings and documentation

Diffstat:
Mconfig.h | 11++++++++---
Mst.1 | 4++--
2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/config.h b/config.h @@ -192,15 +192,20 @@ static MouseShortcut mshortcuts[] = { { Button5, XK_NO_MOD, "\005" }, }; +/* Internal keyboard shortcuts. */ +#define MODKEY Mod1Mask +#define TERMMOD (ControlMask|ShiftMask) + MouseKey mkeys[] = { /* button mask function argument */ { Button4, ShiftMask, kscrollup, {.i = 1} }, { Button5, ShiftMask, kscrolldown, {.i = 1} }, + { Button4, MODKEY, kscrollup, {.i = 1} }, + { Button5, MODKEY, kscrolldown, {.i = 1} }, + { Button4, MODKEY|ShiftMask, zoom, {.f = +1} }, + { Button5, MODKEY|ShiftMask, zoom, {.f = -1} }, }; -/* Internal keyboard shortcuts. */ -#define MODKEY Mod1Mask -#define TERMMOD (ControlMask|ShiftMask) static Shortcut shortcuts[] = { /* mask keysym function argument */ diff --git a/st.1 b/st.1 @@ -125,13 +125,13 @@ and all the remaining arguments are used as a command even without it. .SH SHORTCUTS .TP -.B Alt-j/k or Alt-Up/Down +.B Alt-j/k or Alt-Up/Down or Alt-Mouse Wheel Scroll up/down one line at a time. .TP .B Alt-u/d or Alt-Page Up/Page Down Scroll up/down one screen at a time. .TP -.B Alt-Shift-k/j Alt-Shift-Page Up/Page Down +.B Alt-Shift-k/j or Alt-Shift-Page Up/Page Down or Alt-Shift-Mouse Wheel Increase or decrease font size. .TP .B Alt-Shift-Home