derf / feh

a fast and light image viewer
https://feh.finalrewind.org
Other
1.55k stars 159 forks source link

Displaying different background images on different screens ? #432

Open marcespie opened 6 years ago

marcespie commented 6 years ago

So --xinerama displays a picture on the given screen and makes the other screen blank. Is there a way to just ignore the other screen.

Specifically, I've got a dual screen configuration with a portrait screen and a landscape screen, and I'd like feh to display random pictures from a different set of images appropriate to the monitor format.

As far as I could tell, there are no options that make that possible out-of-the-box...

tsankuanglee commented 6 years ago

Have you tried this? feh --bg-fill 1.png --bg-fill 2.png

marcespie commented 5 years ago

it's not random. See the example script that does what I want with xwallpaper.

Specifically, I don't know how to match xrandr with feh. The primary screen is first, but xinerama indices don't match xrandr in any order whatsoever, and you can't specify outputs by name in feh.

tsankuanglee commented 5 years ago

feh follows the order of the screen number. I have 3 screens and the wallpapaers are correctly placed on each of them by the order.

For randomness, you'll have to write a wrapper script to provide random filenames to feh. For example,

#!/bin/sh
ls | shuf -n 2 | xargs feh --bg-max

randomly picks two files from the directory and feeds it to feh.