File slideshow-delay.patch of Package feh
--- feh-3.11.2-original/src/feh.h 2025-09-09 15:56:31.000000000 -0400
+++ feh-3.11.2/src/feh.h 2025-09-27 02:02:56.093319179 -0400
@@ -78,7 +78,7 @@
#include "debug.h"
-#define SLIDESHOW_RELOAD_MAX 4096
+#define SLIDESHOW_DELAY_MAX 4096
#ifndef TRUE
#define FALSE 0
--- feh-3.11.2-original/src/keyevents.c 2025-09-09 15:56:31.000000000 -0400
+++ feh-3.11.2/src/keyevents.c 2025-09-27 10:05:28.755897658 -0400
@@ -203,8 +203,10 @@
feh_set_kb("orient_3" , 0, XK_less, 0, 0, 0, 0);
feh_set_kb("flip" , 0, XK_underscore, 0, 0, 0, 0);
feh_set_kb("mirror" , 0, XK_bar, 0, 0, 0, 0);
- feh_set_kb("reload_minus" , 0, XK_minus, 0, 0, 0, 0);
- feh_set_kb("reload_plus" , 0, XK_plus, 0, 0, 0, 0);
+ feh_set_kb("delay_minus" , 0, XK_minus, 0, 0, 0, 0);
+ feh_set_kb("delay_big_minus" , 4, XK_minus, 0, 0, 0, 0);
+ feh_set_kb("delay_plus" , 0, XK_plus, 0, XK_equal, 0, 0);
+ feh_set_kb("delay_big_plus" , 4, XK_plus, 4, XK_equal, 0, 0);
feh_set_kb("toggle_keep_vp" , 0, XK_k, 0, 0, 0, 0);
feh_set_kb("toggle_fixed_geometry" , 0, XK_g, 0, 0, 0, 0);
feh_set_kb("pan" , 0, 0, 0, 0, 0, 0);
@@ -780,17 +782,41 @@
}
#endif /* HAVE_LIBXINERAMA */
}
- else if (feh_is_kp(EVENT_reload_plus, state, keysym, button)){
- if (opt.reload < SLIDESHOW_RELOAD_MAX)
- opt.reload++;
+ else if (feh_is_kp(EVENT_delay_plus, state, keysym, button)){
+ if (opt.slideshow_delay < SLIDESHOW_DELAY_MAX)
+ opt.slideshow_delay += 0.01;
+ if (opt.verbose)
+ weprintf("Slideshow Delay changed to %f seconds.", opt.slideshow_delay);
else if (opt.verbose)
- weprintf("Cannot set RELOAD higher than %f seconds.", opt.reload);
+ weprintf("Cannot set DELAY higher than %f seconds.", opt.slideshow_delay);
}
- else if (feh_is_kp(EVENT_reload_minus, state, keysym, button)) {
- if (opt.reload > 1)
- opt.reload--;
+ else if (feh_is_kp(EVENT_delay_big_plus, state, keysym, button)){
+ if (opt.slideshow_delay < SLIDESHOW_DELAY_MAX)
+ opt.slideshow_delay += 0.1;
+ if (opt.verbose)
+ weprintf("Slideshow Delay changed to %f seconds.", opt.slideshow_delay);
else if (opt.verbose)
- weprintf("Cannot set RELOAD lower than 1 second.");
+ weprintf("Cannot set DELAY higher than %f seconds.", opt.slideshow_delay);
+ }
+ else if (feh_is_kp(EVENT_delay_minus, state, keysym, button)) {
+ opt.slideshow_delay -= 0.01;
+ if (opt.slideshow_delay < 0.01) {
+ opt.slideshow_delay = 0.01;
+ if (opt.verbose)
+ weprintf("Cannot set DELAY lower than 0.01 seconds.");
+ }
+ if (opt.verbose)
+ weprintf("Slideshow Delay changed to %f seconds.", opt.slideshow_delay);
+ }
+ else if (feh_is_kp(EVENT_delay_big_minus, state, keysym, button)) {
+ opt.slideshow_delay -= 0.1;
+ if (opt.slideshow_delay < 0.01) {
+ opt.slideshow_delay = 0.01;
+ if (opt.verbose)
+ weprintf("Cannot set DELAY lower than 0.01 seconds.");
+ }
+ if (opt.verbose)
+ weprintf("Slideshow Delay changed to %f seconds.", opt.slideshow_delay);
}
else if (feh_is_kp(EVENT_toggle_keep_vp, state, keysym, button)) {
opt.keep_zoom_vp = !opt.keep_zoom_vp;
--- feh-3.11.2-original/src/options.h 2025-09-09 15:56:31.000000000 -0400
+++ feh-3.11.2/src/options.h 2025-09-27 10:03:16.308056587 -0400
@@ -333,8 +333,10 @@
EVENT_orient_3,
EVENT_flip,
EVENT_mirror,
- EVENT_reload_minus,
- EVENT_reload_plus,
+ EVENT_delay_minus,
+ EVENT_delay_big_minus,
+ EVENT_delay_plus,
+ EVENT_delay_big_plus,
EVENT_toggle_keep_vp,
EVENT_toggle_fixed_geometry,
EVENT_pan,