From bb577d274dbd9981a726092a504466bc9b5c9bdb Mon Sep 17 00:00:00 2001 From: Bert Date: Fri, 19 Aug 2011 18:46:17 +0200 Subject: Added command to toggle gif animations --- config.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 07371c9..46e30c6 100644 --- a/config.h +++ b/config.h @@ -29,7 +29,7 @@ static const float zoom_levels[] = { 100.0, 150.0, 200.0, 400.0, 800.0 }; -/* default settings for gif images: */ +/* default settings for multi-frame gif images: */ enum { GIF_DELAY = 100, /* delay time (in ms) */ GIF_AUTOPLAY = 1, /* autoplay when loaded [0/1] */ @@ -64,8 +64,9 @@ static const keymap_t keys[] = { { False, XK_g, it_first, (arg_t) None }, { False, XK_G, it_last, (arg_t) None }, - { False, XK_N, i_navigate_frame, (arg_t) +1 }, - { False, XK_P, i_navigate_frame, (arg_t) -1 }, + { True, XK_n, i_navigate_frame, (arg_t) +1 }, + { True, XK_p, i_navigate_frame, (arg_t) -1 }, + { True, XK_space, i_toggle_animation, (arg_t) None }, { False, XK_h, it_move, (arg_t) DIR_LEFT }, { False, XK_Left, it_move, (arg_t) DIR_LEFT }, -- cgit v1.2.3-54-g00ecf