From ff5071fa13594d4fafd3d6ef30d3d263f8eae06e Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 17 Nov 2024 22:22:23 +0100 Subject: [PATCH] input.conf: bind alt+arrows to positioning.lua's pan --- etc/input.conf | 8 ++++---- etc/restore-old-bindings.conf | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/etc/input.conf b/etc/input.conf index a89f01c2c870a..1b03613c4736f 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -58,10 +58,10 @@ #Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle #Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed #Ctrl+Shift+RIGHT sub-step 1 # change subtitle timing such that the next subtitle is displayed -#Alt+left add video-pan-x 0.1 # move the video right -#Alt+right add video-pan-x -0.1 # move the video left -#Alt+up add video-pan-y 0.1 # move the video down -#Alt+down add video-pan-y -0.1 # move the video up +#Alt+LEFT repeatable no-osd change-list script-opts append positioning-pan_amount=-0.2; script-binding positioning/pan-x # pan to the right +#Alt+RIGHT repeatable no-osd change-list script-opts append positioning-pan_amount=0.2; script-binding positioning/pan-x # pan to the left +#Alt+UP repeatable no-osd change-list script-opts append positioning-pan_amount=-0.2; script-binding positioning/pan-y # pan down +#Alt+DOWN repeatable no-osd change-list script-opts append positioning-pan_amount=0.2; script-binding positioning/pan-y # pan up #Alt++ add video-zoom 0.1 # zoom in #ZOOMIN add video-zoom 0.1 # zoom in #Alt+- add video-zoom -0.1 # zoom out diff --git a/etc/restore-old-bindings.conf b/etc/restore-old-bindings.conf index d07b37e02b9e3..a20d2d7c5a070 100644 --- a/etc/restore-old-bindings.conf +++ b/etc/restore-old-bindings.conf @@ -9,6 +9,13 @@ # # Older installations use ~/.mpv/input.conf instead. +# changed in mpv 0.40.0 + +#Alt+LEFT add video-pan-x 0.1 # move the video right +#Alt+RIGHT add video-pan-x -0.1 # move the video left +#Alt+UP add video-pan-y 0.1 # move the video down +#Alt+DOWN add video-pan-y -0.1 # move the video up + # changed in mpv 0.37.0 WHEEL_UP seek 10 # seek 10 seconds forward