summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-05-01 15:01:58 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-05-01 15:01:58 -0700
commitae9739faedbf43996dd146e321c79747b907d01e (patch)
tree188d7d1570f989fbbabb72e53a60c78259a9b15b
parentf6ecf743ab44c77af60f96a670fbc9a3da6d8241 (diff)
alt-shift-j/k zoom bindings b/c why not lmao
-rw-r--r--README.md1
-rw-r--r--config.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 248b4cf..9a6c849 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ Forked from [https://github.com/shiva/st](https://github.com/shiva/st) for simpl
+ Alt-u and Alt-d scroll back/foward in history a page at a time.
+ Alt-PageUp and Alt-PageDown scroll back/foward in history a page at a time.
+ Transparency with solarized colors by default.
++ Zoom in/out with Alt+Shift+k/j or u/d for larger intervals.
## Terminal-specific mappings
diff --git a/config.h b/config.h
index a38b79a..352d249 100644
--- a/config.h
+++ b/config.h
@@ -192,6 +192,10 @@ static Shortcut shortcuts[] = {
{ MODKEY, XK_Down, kscrolldown, {.i = 1} },
{ MODKEY, XK_u, kscrollup, {.i = -1} },
{ MODKEY, XK_d, kscrolldown, {.i = -1} },
+ { MODKEY|ShiftMask, XK_K, zoom, {.f = +1} },
+ { MODKEY|ShiftMask, XK_J, zoom, {.f = -1} },
+ { MODKEY|ShiftMask, XK_U, zoom, {.f = +2} },
+ { MODKEY|ShiftMask, XK_D, zoom, {.f = -2} },
};
/*