summary refs log tree commit diff
path: root/.config/mpv/mvi/input.conf
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/input.conf
parent8f29be993dad465c1bb108462dc1bd63706649a5 (diff)
update mpv config
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rw-r--r--.config/mpv/mvi/input.conf (renamed from .config/mvi/input.conf)31
1 files changed, 15 insertions, 16 deletions
diff --git a/.config/mvi/input.conf b/.config/mpv/mvi/input.conf
index d445584..0eb9f48 100644
--- a/.config/mvi/input.conf
+++ b/.config/mpv/mvi/input.conf
@@ -1,8 +1,16 @@
+1 change-list script-opts append image_positioning-drag_to_pan_margin=200
+2 change-list script-opts append ruler-exit_bindings=8
+3 change-list script-opts append ruler-line_color=FF
+4 change-list script-opts append ruler-scale=25
+5 change-list script-opts append ruler-max_size=20,20
+
 SPACE repeatable playlist-next
 alt+SPACE repeatable playlist-prev
 
-p repeatable playlist-prev
-n repeatable playlist-next
+UP ignore
+DOWN ignore
+LEFT repeatable playlist-prev
+RIGHT repeatable playlist-next
 
 # simple reminder of default bindings
 #1 add contrast -1
@@ -10,7 +18,6 @@ n repeatable playlist-next
 #3 add brightness -1
 #4 add brightness 1
 #5 add gamma -1
-5 cycle-values gamma-factor 1.0 1.1 1.2
 #6 add gamma 1
 #7 add saturation -1
 #8 add saturation 1
@@ -18,6 +25,7 @@ n repeatable playlist-next
 # mouse-centric bindings
 MBTN_RIGHT script-binding drag-to-pan
 MBTN_LEFT  script-binding pan-follows-cursor
+MBTN_LEFT_DBL ignore
 WHEEL_UP   script-message cursor-centric-zoom 0.1
 WHEEL_DOWN script-message cursor-centric-zoom -0.1
 
@@ -30,11 +38,6 @@ WHEEL_DOWN script-message cursor-centric-zoom -0.1
 #   if yes, will pan by the same         if yes, stops panning if the image
 #     amount regardless of zoom             would go outside of the window
 
-DOWN  repeatable script-message pan-image y -0.5 yes yes
-UP    repeatable script-message pan-image y +0.5 yes yes
-RIGHT repeatable script-message pan-image x -0.5 yes yes
-LEFT  repeatable script-message pan-image x +0.5 yes yes
-
 ctrl+down  repeatable script-message pan-image y -0.1 yes yes
 ctrl+up    repeatable script-message pan-image y +0.1 yes yes
 ctrl+right repeatable script-message pan-image x -0.1 yes yes
@@ -70,9 +73,8 @@ ctrl+0  no-osd set video-pan-x 0; no-osd set video-pan-y 0; no-osd set video-zoo
 - add video-zoom -0.5; script-message reset-pan-if-visible
 = no-osd set video-zoom 0; script-message reset-pan-if-visible
 
-# sxiv compatibility
-w no-osd set video-unscaled yes; keypress =
-e no-osd set video-unscaled no; keypress =
+e script-message equalizer-toggle
+alt+e script-message equalizer-reset
 
 h no-osd vf toggle hflip; show-text "Horizontal flip"
 v no-osd vf toggle vflip; show-text "Vertical flip"
@@ -93,14 +95,11 @@ c cycle icc-profile-auto
 S screenshot window
 
 # Toggle aspect ratio information on and off
-A cycle-values video-aspect "-1" "no"
+A cycle-values video-aspect-override "-1" "no"
 
-P script-message force-print-filename
+p script-message force-print-filename
 
 # ADVANCED: you can define bindings that belong to a "section" (named "image-viewer" here) like so:
 #alt+SPACE {image-viewer} repeatable playlist-prev
 #SPACE     {image-viewer} repeatable playlist-next
 # to load them conditionally with a command. See scripts-opts/image_viewer.conf for how you can do this
-
-g script-message contact-sheet-close; script-message playlist-view-toggle
-c script-message playlist-view-close; script-message contact-sheet-toggle