summary refs log tree commit diff
path: root/.config/mpv/mvi/script-opts
diff options
context:
space:
mode:
Diffstat (limited to '.config/mpv/mvi/script-opts')
-rw-r--r--.config/mpv/mvi/script-opts/detect_image.conf17
-rw-r--r--.config/mpv/mvi/script-opts/image_positioning.conf14
-rw-r--r--.config/mpv/mvi/script-opts/minimap.conf19
-rw-r--r--.config/mpv/mvi/script-opts/ruler.conf21
-rw-r--r--.config/mpv/mvi/script-opts/status_line.conf14
5 files changed, 85 insertions, 0 deletions
diff --git a/.config/mpv/mvi/script-opts/detect_image.conf b/.config/mpv/mvi/script-opts/detect_image.conf
new file mode 100644
index 0000000..586fb95
--- /dev/null
+++ b/.config/mpv/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 status-line-enable
+#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 status-line-disable
diff --git a/.config/mpv/mvi/script-opts/image_positioning.conf b/.config/mpv/mvi/script-opts/image_positioning.conf
new file mode 100644
index 0000000..998ec64
--- /dev/null
+++ b/.config/mpv/mvi/script-opts/image_positioning.conf
@@ -0,0 +1,14 @@
+# size of the margins with drag-to-pan
+drag_to_pan_margin=50
+drag_to_pan_move_if_full_view=no
+
+# size of the margins with pan-follows-cursor
+pan_follows_cursor_margin=50
+
+# size of the margins with cursor-centric-zoom
+cursor_centric_zoom_margin=50
+# if the borders would show up, move the image 
+# this makes it not exactly cursor-centric in some cases
+cursor_centric_zoom_auto_center=yes
+# allow zooming out if the image can already fully fit in the window
+cursor_centric_zoom_dezoom_if_full_view=no
diff --git a/.config/mpv/mvi/script-opts/minimap.conf b/.config/mpv/mvi/script-opts/minimap.conf
new file mode 100644
index 0000000..72a05ea
--- /dev/null
+++ b/.config/mpv/mvi/script-opts/minimap.conf
@@ -0,0 +1,19 @@
+# whether to show by default
+enabled=yes
+# the position of the center of the minimap, in percentage of the window (x, y)
+center=92,92
+# the scale of the minimap (i.e. the view rectangle is scale / 100 times the size of the window)
+scale=12
+# the cutoff size of the minimap (i.e. the image rectangle is clipped if it falls outside of the this zone)
+max_size=16,16
+# opacity of the "image" (from 00=opaque to FF=transparent)
+image_opacity=88
+# color of the "image" (#BBGGRR where each component rages from 00 to FF)
+image_color=BBBBBB
+# opacity of the "view"
+view_opacity=BB
+view_color=222222
+# whether the view should be drawn above the image
+view_above_image=yes
+# whether to show the minimap if the current image is fully visible
+hide_when_full_image_in_view=yes
diff --git a/.config/mpv/mvi/script-opts/ruler.conf b/.config/mpv/mvi/script-opts/ruler.conf
new file mode 100644
index 0000000..5e6f48d
--- /dev/null
+++ b/.config/mpv/mvi/script-opts/ruler.conf
@@ -0,0 +1,21 @@
+# whether to show the length of the lines between the two points
+show_distance=yes
+# whether to show the coordinates of the two points
+show_coordinates=yes
+# the coordinate space of the text shown. Can be "image", "window", "both"
+coordinates_space=image
+# can be "degrees", "radians", "both", or "no"
+show_angles=degrees
+line_width=2
+dots_radius=3
+font_size=36
+# ranges from 00 (black) to FF (white)
+line_color=33
+# bindings used to set points. The binding to trigger ruler mode can also be used. Comma-separated list
+confirm_bindings=MBTN_LEFT,ENTER
+# bindings used to set points. The binding to trigger ruler mode can also be used. Comma-separated list
+exit_bindings=ESC
+# if yes, the first point will be immediately set at the cursor position when calling 'ruler'
+set_first_point_on_begin=no
+# if yes, the ruler overlay will be immediately cleared when setting the second point
+clear_on_second_point_set=no
diff --git a/.config/mpv/mvi/script-opts/status_line.conf b/.config/mpv/mvi/script-opts/status_line.conf
new file mode 100644
index 0000000..ec15108
--- /dev/null
+++ b/.config/mpv/mvi/script-opts/status_line.conf
@@ -0,0 +1,14 @@
+# whether to show by default
+enabled=yes
+# its font size
+size=36
+# distance of the text to the borders
+margin=10
+# the text to be expanded
+# see property expansion: https://mpv.io/manual/master/#property-expansion
+# \N can be used for line breaks
+# you can also use ass tags, see here: http://docs.aegisub.org/3.2/ASS_Tags/
+text_top_left=
+text_top_right=
+text_bottom_left=${filename} [${playlist-pos-1}/${playlist-count}]
+text_bottom_right=[${dwidth:X}x${dheight:X}]