Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proper support for tiling WMs [was: zoom to window size] #54

Closed
ecraven opened this issue Aug 11, 2011 · 10 comments
Closed

proper support for tiling WMs [was: zoom to window size] #54

ecraven opened this issue Aug 11, 2011 · 10 comments
Labels
bug

Comments

@ecraven
Copy link

@ecraven ecraven commented Aug 11, 2011

i frequently use feh with a tiling window manager. it would be great if there were a switch that automatically zoomed the image to the window size (like with fullscreen, but without actually changing the window size). right now i need to specify the exact geometry to get this to work correctly.

@livibetter
Copy link
Contributor

@livibetter livibetter commented Aug 11, 2011

Use with --auto-zoom --scale-down. First one for full-screen, latter for normal window.

@ecraven
Copy link
Author

@ecraven ecraven commented Aug 11, 2011

thanks!
feh -B black -Z --scale-down * works well, except for centering (is that possible?)

@livibetter
Copy link
Contributor

@livibetter livibetter commented Aug 11, 2011

Hmm... interesting, I can't find an option for centering image.

Can you edit the issue title to make this issue for that feature. Not sure if reporter can do that though.

I think there would be needing a discussing about under what case should put image at center. Certainly, if image smaller than the window size, it looks good. If bigger, it doesn't in my opinion.

@derf
Copy link
Owner

@derf derf commented Aug 11, 2011

Hmm. For me, there's very little difference between showing the top-left corner (which feh does right now if an image is too large) and centering. I see just two very minor advantages in the current behaviour: the user knows that the top-left is shown, so he only needs to scroll right or down; and it is clear that parts of the image are missing, which might not be clear when centering.

What do you need the centering for? And you might try --zoom max and --zoom fill, perhaps they produce something similar to what you want.

@ecraven
Copy link
Author

@ecraven ecraven commented Aug 11, 2011

i would like images zoomed to the window size (as -.Z does) to be shown centered, not left-aligned

@derf
Copy link
Owner

@derf derf commented Aug 11, 2011

Ah... that's a bug of feh's tiling mode handling, which is unfortunately extremely messy. I hope I can fix it some time.

@derf
Copy link
Owner

@derf derf commented Oct 31, 2011

As of e162228, feh has some kind of tiling window manager support.
Use feh -.Z to have large images scaled down and small images scaled up, in both cases the image will be centered in the window.

Unfortunately there's an awful lot of flickering involved, but I might get that fixed later...

@trapd00r
Copy link

@trapd00r trapd00r commented Oct 31, 2011

Thank you so much! This was a whole lot better. :)

@derf
Copy link
Owner

@derf derf commented Feb 2, 2012

The --geometry workaround (no more flickering!) is documented in feh(1). I'm closing this issue now since it probably won't get any better.

@derf derf closed this Feb 2, 2012
@derf
Copy link
Owner

@derf derf commented Nov 23, 2012

note to self: it should be possible to detect a tiling window manager by its window change / resize behaviour. (thx timo)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.