derf / feh

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

Feh not correctly work on multiple monitors #669

Open mt190502 opened 2 years ago

mt190502 commented 2 years ago

Hi. I'm using swaywm on fedora. But i have a problem.

I'm taking a 3840x1080 resolution screenshot. But when I type feh -F screenshot.png it shows up on a single monitor.

image

I want the 3840x1080 photo I took to appear full screen using two screens. The --no-xinerama and --geometry params didn't work.

RalfWerner commented 2 years ago

Maybe that was just not used properly. But I don't know my way around Fedora. In Windows, two visual designs can be set as one (1) or separately (2). If I then use the setting (1) and display an image, which is greater than the first screen (without -F), it is displayed on both and the window can be enlarged to the total size of both screens and moved with pan.

The Toggle key input f (corresponds to the option-F) will scale the image to the maximum size of the first screens. Toggle also works when you start with the option -F.

I think the function should work that way. Here are two shots from the two options: without -F and with -F

mt190502 commented 1 year ago

Maybe that was just not used properly. But I don't know my way around Fedora. In Windows, two visual designs can be set as one (1) or separately (2). If I then use the setting (1) and display an image, which is greater than the first screen (without -F), it is displayed on both and the window can be enlarged to the total size of both screens and moved with pan.

The Toggle key input f (corresponds to the option-F) will scale the image to the maximum size of the first screens. Toggle also works when you start with the option -F.

I think the function should work that way. Here are two shots from the two options: grafik grafik

-F option doesn't work correctly :(

RalfWerner commented 1 year ago

-F option doesn't work correctly :(

What do you expect from the option? with feh -h you get among other things: -F, --fullscreen Make the window full screen My example above corresponds to my expectation.

mt190502 commented 1 year ago

-F option doesn't work correctly :(

What do you expect from the option? with feh -h you get among other things: -F, --fullscreen Make the window full screen My example above corresponds to my expectation.

When I make it full screen I want the photo to span two screens

RalfWerner commented 1 year ago

When I make it full screen I want the photo to span two screens

That's not the behavior and implementation. to span above two screens - using not -F (first shot). Most of the image is transparent. In fullscreen mode, it is replaced with the background color - see option -B (default black).

avlec commented 1 year ago

If my memory is correct using the --geometery should work as long as you specify the correct x,y coordinates, which might vary from how your X displays are configured. Assuming your X screens have an origin point of 0,0 (top left) you'd want --geometery 3840x1080+0+0

RalfWerner commented 1 year ago

@mt190502 This issue could be closed. The behavior of full screen and the options for displaying on multiple monitors has been completely clarified.

mt190502 commented 1 year ago

If my memory is correct using the --geometery should work as long as you specify the correct x,y coordinates, which might vary from how your X displays are configured. Assuming your X screens have an origin point of 0,0 (top left) you'd want --geometery 3840x1080+0+0

Not work on swaywm :(

avlec commented 1 year ago

It could be swaywm that's getting in the way. I know that with xmonad there is the ability to set rules for windows of different applications. You could also try manually resizing your window, which your window manager might natively support or you might have to configure. I know with xmonad's default config its Super (Win)+Right Click