Skip to content

Commit ff5071f

Browse files
committed
input.conf: bind alt+arrows to positioning.lua's pan
1 parent 670d6eb commit ff5071f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

Diff for: etc/input.conf

+4-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
#Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle
5959
#Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed
6060
#Ctrl+Shift+RIGHT sub-step 1 # change subtitle timing such that the next subtitle is displayed
61-
#Alt+left add video-pan-x 0.1 # move the video right
62-
#Alt+right add video-pan-x -0.1 # move the video left
63-
#Alt+up add video-pan-y 0.1 # move the video down
64-
#Alt+down add video-pan-y -0.1 # move the video up
61+
#Alt+LEFT repeatable no-osd change-list script-opts append positioning-pan_amount=-0.2; script-binding positioning/pan-x # pan to the right
62+
#Alt+RIGHT repeatable no-osd change-list script-opts append positioning-pan_amount=0.2; script-binding positioning/pan-x # pan to the left
63+
#Alt+UP repeatable no-osd change-list script-opts append positioning-pan_amount=-0.2; script-binding positioning/pan-y # pan down
64+
#Alt+DOWN repeatable no-osd change-list script-opts append positioning-pan_amount=0.2; script-binding positioning/pan-y # pan up
6565
#Alt++ add video-zoom 0.1 # zoom in
6666
#ZOOMIN add video-zoom 0.1 # zoom in
6767
#Alt+- add video-zoom -0.1 # zoom out

Diff for: etc/restore-old-bindings.conf

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
#
1010
# Older installations use ~/.mpv/input.conf instead.
1111

12+
# changed in mpv 0.40.0
13+
14+
#Alt+LEFT add video-pan-x 0.1 # move the video right
15+
#Alt+RIGHT add video-pan-x -0.1 # move the video left
16+
#Alt+UP add video-pan-y 0.1 # move the video down
17+
#Alt+DOWN add video-pan-y -0.1 # move the video up
18+
1219
# changed in mpv 0.37.0
1320

1421
WHEEL_UP seek 10 # seek 10 seconds forward

0 commit comments

Comments
 (0)