summary refs log tree commit diff
path: root/.config/mpv/mvi/script-opts
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2024-11-25 13:30:08 +0100
committerRobert Günzler <r@gnzler.io>2024-11-25 13:58:25 +0100
commit18e3848110da0a59843058927ea04b496f5db2a5 (patch)
treed54e7e1ab025d61507a0b1c3523c08abf400575d /.config/mpv/mvi/script-opts
parent8f29be993dad465c1bb108462dc1bd63706649a5 (diff)
update mpv config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rw-r--r--.config/mpv/mvi/script-opts/detect_image.conf (renamed from .config/mvi/script-opts/detect_image.conf)4
-rw-r--r--.config/mpv/mvi/script-opts/image_positioning.conf14
-rw-r--r--.config/mpv/mvi/script-opts/minimap.conf (renamed from .config/mvi/script-opts/minimap.conf)0
-rw-r--r--.config/mpv/mvi/script-opts/ruler.conf (renamed from .config/mvi/script-opts/ruler.conf)0
-rw-r--r--.config/mpv/mvi/script-opts/status_line.conf (renamed from .config/mvi/script-opts/status_line.conf)9
5 files changed, 22 insertions, 5 deletions
diff --git a/.config/mvi/script-opts/detect_image.conf b/.config/mpv/mvi/script-opts/detect_image.conf
index 1ddd9ca..586fb95 100644
--- a/.config/mvi/script-opts/detect_image.conf
+++ b/.config/mpv/mvi/script-opts/detect_image.conf
@@ -12,6 +12,6 @@ command_on_non_image_loaded=
 # 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_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 disable-status-line
+#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/mvi/script-opts/minimap.conf b/.config/mpv/mvi/script-opts/minimap.conf
index 72a05ea..72a05ea 100644
--- a/.config/mvi/script-opts/minimap.conf
+++ b/.config/mpv/mvi/script-opts/minimap.conf
diff --git a/.config/mvi/script-opts/ruler.conf b/.config/mpv/mvi/script-opts/ruler.conf
index 5e6f48d..5e6f48d 100644
--- a/.config/mvi/script-opts/ruler.conf
+++ b/.config/mpv/mvi/script-opts/ruler.conf
diff --git a/.config/mvi/script-opts/status_line.conf b/.config/mpv/mvi/script-opts/status_line.conf
index 2245494..ec15108 100644
--- a/.config/mvi/script-opts/status_line.conf
+++ b/.config/mpv/mvi/script-opts/status_line.conf
@@ -1,11 +1,14 @@
 # whether to show by default
 enabled=yes
-# its position, possible values: (bottom|top)-(left|right)
-position=bottom-left
 # 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=${filename} [${playlist-pos-1}/${playlist-count}]
+text_top_left=
+text_top_right=
+text_bottom_left=${filename} [${playlist-pos-1}/${playlist-count}]
+text_bottom_right=[${dwidth:X}x${dheight:X}]