occivink / mpv-image-viewer

Configuration, scripts and tips for using mpv as an image viewer
The Unlicense
284 stars 23 forks source link

request for extra script #17

Open marcespie opened 3 years ago

marcespie commented 3 years ago

I don't know whether that's possible, but I have a peculiar setup: dual screen with one portrait and one landscape.

Would it be possible to have auto-detection of portrait/landscape pictures (easy) and to switch monitor automatically when changing image (no idea whether it's feasible/hard)

occivink commented 3 years ago

This is pretty specific, and difficult to make a generic script for. I'm not even sure whether you can change monitor at runtime from mpv itself (there's a property https://mpv.io/manual/master/#options-screen but it might be that startup-only). You'll probably have better success making an external script that communicates with both mpv and your wm. I only have a single monitor so I can't really help you there.