~guidocella/mpv-image-config

4958da4cb837fd3fd86dfdc4238bd5d4f9bc4905 — Guido Cella 1 year, 24 days ago 2e38785
extract Usage section
1 files changed, 4 insertions(+), 2 deletions(-)

M README.md
M README.md => README.md +4 -2
@@ 2,8 2,6 @@ This is an example configuration for using mpv as an image viewer.

mpv 0.34 is needed for the `track-list/N/image` sub-property.

Use this by copying what you want to use from `mpv.conf` and `input.conf` into your versions of these files, and copying or symlinking into `~~/scripts` `scripts/align-images.lua` for automatically aligning the OSD to the top-right corner of images bigger than the OSD and centering images smaller than the OSD, and `scripts/image-bindings.lua` for the script messages used by `input.conf`.

## Why?

* mpv is feature rich and far more extensible than any image viewer. You can easily add original key bindings, set up conditional profiles and do pretty much anything with Lua scripts


@@ 13,6 11,10 @@ Use this by copying what you want to use from `mpv.conf` and `input.conf` into y
* It supports Wayland unlike sxiv or feh
* Background transparency on X11 with Nvidia proprietary drivers and on Wayland

## Usage

Copy what you want to use from `mpv.conf` and `input.conf` into your versions of these files, and copying or symlinking into `~~/scripts` `scripts/align-images.lua` for automatically aligning the OSD to the top-right corner of images bigger than the OSD and centering images smaller than the OSD, and `scripts/image-bindings.lua` for the script messages used by `input.conf`.

## How can I display thumbnails of images?

Use https://github.com/occivink/mpv-gallery-view