imv
imv copied to clipboard
Fullscreen + reset/center key binding with shrink scaling mode
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: