diff options
| author | Robert Günzler <r@gnzler.io> | 2020-12-03 12:56:51 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2020-12-07 19:28:05 +0100 |
| commit | 0eb11ed2c3dc235349b87d20bf657f2fb9729994 (patch) | |
| tree | ceba665d591328bb47418ab82bb0de31abff98e5 /.config/mvi/script-opts/detect_image.conf | |
| parent | e93cee56264c7e1d07b422d66430d996fd8b0c40 (diff) | |
Add bin/mvi and config; mpv-based image viewer
Diffstat (limited to '.config/mvi/script-opts/detect_image.conf')
| -rw-r--r-- | .config/mvi/script-opts/detect_image.conf | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.config/mvi/script-opts/detect_image.conf b/.config/mvi/script-opts/detect_image.conf new file mode 100644 index 0000000..1ddd9ca --- /dev/null +++ b/.config/mvi/script-opts/detect_image.conf @@ -0,0 +1,17 @@ +# commands to execute when a file detected as an image (1 frame, no audio) is loaded or unloaded + +# an image was loaded, and the previous file was not an image (or there was no previous file) +command_on_first_image_loaded= +# an image was loaded (regardless of what the previous file was) +command_on_image_loaded= +# a non-image was loaded, and the previous file was an image +command_on_non_image_loaded= + +# the purpose of these "hooks" is to let you change bindings, profiles, reset properties... +# see https://mpv.io/manual/master/#list-of-input-commands for general command information +# note that there is no such thing as "unloading a profile", to emulate this you must create an opposite profile and load that + +# example possible values: +#command_on_first_image_loaded=apply-profile image; enable-section image-viewer; script-message enable-status-line +#command_on_image_loaded=no-osd set video-pan-x 0; script-message align-border "" -1 +#command_on_non_image_loaded=disable-section image-viewer; no-osd set video-pan-x 0; no-osd set video-pan-y 0; no-osd set video-zoom 0; script-message disable-status-line |