diff options
author | Nick Hanley <nicholasjhanley@gmail.com> | 2022-01-15 17:51:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-15 18:51:31 -0400 |
commit | 2ac44709bd9a9ec8d3ab60a40a81ac7ca3ad1b57 (patch) | |
tree | 73221bb787569c4089930436ddc644490ccb2c18 /config.def.h | |
parent | 7a75c42b37b08f44c72f9a7c98eb6076967470fb (diff) |
Add keybind to scroll to image center (#203)
There are keybinds for scrolling to the edges of an image but there's no way back to the center. This is particularly annoying while zooming.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index b328305..0973ff4 100644 --- a/config.def.h +++ b/config.def.h @@ -158,6 +158,7 @@ static const keymap_t keys[] = { { 0, XK_J, i_scroll_to_edge, DIR_DOWN }, { 0, XK_K, i_scroll_to_edge, DIR_UP }, { 0, XK_L, i_scroll_to_edge, DIR_RIGHT }, + { 0, XK_z, i_scroll_to_center, None }, { 0, XK_equal, i_set_zoom, 100 }, { 0, XK_w, i_fit_to_win, SCALE_DOWN }, { 0, XK_W, i_fit_to_win, SCALE_FIT }, |