Skip to content

Commit d0b0688

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

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-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

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
# changed in mpv 0.40.0
1313

1414
MBTN_RIGHT cycle pause # toggle pause/playback mode
15+
#Alt+LEFT add video-pan-x 0.1 # move the video right
16+
#Alt+RIGHT add video-pan-x -0.1 # move the video left
17+
#Alt+UP add video-pan-y 0.1 # move the video down
18+
#Alt+DOWN add video-pan-y -0.1 # move the video up
1519

1620
# changed in mpv 0.37.0
1721

0 commit comments

Comments
 (0)