I'm running a script in the background which loads an image with
feh depending on which application is currently in focus. However, whenever the script opens the image, window focus is lost to feh. I was able to circumvent this by using
xdotool to switch back to the application that was originally in focus, but this introduces a short annoying period of time where the focus is switched from feh to the application.
My question is this:
is there any way to launch
feh in the background such that window focus is NOT lost?
System: Fedora 17, Gnome 3, Bash