1

Someone know a way to send on Linux an "instruction" (like a system command) to an already open feh instance to reload the same image already loaded or maybe another one? I have seen feh doing relatively complex task via shell scripts, but I am struggling to obtain just this feature. Thanks in advance!

Vasily
  • 316
  • 3
  • 12
  • Use `xdotool search ...` to get the *WindowId* of `feh`, then send `r` (for `refresh`) using `xdotool key --windowid XYZ r` – Mark Setchell Nov 04 '16 at 22:31

1 Answers1

3

You can pass the -R flag to get it to reload every few seconds.

It's also possible that sending SIGUSR1 (if you know the PID, that's as easy as kill SIGUSR1 $pid) would be sufficient to get it to reload; that usually forces it to go to the next photo, but if there is no next photo it might force a reload of the current one.

Haldean Brown
  • 12,411
  • 5
  • 43
  • 58