aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorbaskerville <nihilhill@gmail.com>2012-07-19 12:28:44 +0200
committerbaskerville <nihilhill@gmail.com>2012-07-19 12:28:44 +0200
commitb56989f8fbfa6ab32e1fa8f54c0d03ff924c7308 (patch)
tree75b1a7c94f52f03184e373bf634f395d3f88ff06 /config.def.h
parent5b6467913cca4086ebb6056e7235a3c78570ce6f (diff)
downloadnsxiv-b56989f8fbfa6ab32e1fa8f54c0d03ff924c7308.tar.zst
New commands: fit to the window's height/width
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 1116602..49dac49 100644
--- a/config.def.h
+++ b/config.def.h
@@ -108,7 +108,9 @@ static const keymap_t keys[] = {
{ false, XK_minus, i_zoom, (arg_t) -1 },
{ false, XK_KP_Subtract, i_zoom, (arg_t) -1 },
{ false, XK_equal, i_set_zoom, (arg_t) 100 },
- { false, XK_w, i_fit_to_win, (arg_t) None },
+ { false, XK_w, i_fit_to_win, (arg_t) SCALE_FIT },
+ { false, XK_e, i_fit_to_win, (arg_t) SCALE_WIDTH },
+ { false, XK_E, i_fit_to_win, (arg_t) SCALE_HEIGHT },
{ false, XK_W, i_fit_to_img, (arg_t) None },
{ false, XK_less, i_rotate, (arg_t) DIR_LEFT },