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

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

Description

@maxigaz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions