Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Fullscreen + reset/center key binding with shrink scaling mode #331

Open
maxigaz opened this issue Apr 26, 2021 · 0 comments
Open

Fullscreen + reset/center key binding with shrink scaling mode #331

maxigaz opened this issue Apr 26, 2021 · 0 comments

Comments

@maxigaz
Copy link

maxigaz commented Apr 26, 2021

I’m using imv v4.2.0 on Manjaro Linux and i3, and would like to be able to recentre the image automatically after going fullscreen (so that I wouldn’t need to press r or c after pressing f).

After taking a look at the man pages (1 and 5), I found I could achieve this by placing the following in $HOME/.config/imv/config:

[binds]
f = fullscreen; reset

However, this doesn’t work as expected when the scaling mode is set to shrink (e.g. by running imv -s shrink img.png or pressing s) and the height of the image is smaller than the height of the current screen resolution. In this case, the opened image becomes offset each time I press f.

Example images tested on a 1920x1080 screen:

  1. ARM logo: recentered correctly
  2. Mona Lisa (even higher resolutions available here): recentering fails
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant