-
Notifications
You must be signed in to change notification settings - Fork 0
/
input.conf
113 lines (92 loc) · 4.64 KB
/
input.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# These are useful for both videos and images.
n repeatable playlist-next force
p repeatable playlist-prev
N playlist-next-playlist
P playlist-prev-playlist
r cycle-values video-rotate 270 180 90 0 # default: add sub-pos -1
t cycle-values video-rotate 90 180 270 0 # default: add sub-pos +1
v cycle-values video-rotate 0 180 # default: cycle sub-visibility
# Rebind mpv-gallery-view so we can use g sequences.
g ignore
g-y script-message-to playlist_view playlist-view-toggle
# Enter a playlist index to go to.
g-i script-message-to console type 'set playlist-pos-1 ; keypress ESC' 20
# Go to the first playlist entry.
g-g playlist-play-index 0
# Go to the last playlist entry.
G no-osd set playlist-pos-1 ${playlist-count} # default: add sub-scale +0.1
# warning: this permanently deletes the current file from the filesystem
Ctrl+Alt+Shift+r script-message rm-file
# Image-only bindings
SPACE {image} repeatable playlist-next force
] {image} no-osd add playlist-pos 10
[ {image} no-osd add playlist-pos -10
# pan-image is a wrapper around altering video-align that pans
# relatively to the window's dimensions instead of the image's.
# +1 scrolls one screen width/height.
h {image} repeatable script-message pan-image x -.2
j {image} repeatable script-message pan-image y +.2
k {image} repeatable script-message pan-image y -.2
l {image} repeatable script-message pan-image x +.2
LEFT {image} repeatable script-message pan-image x -.2
DOWN {image} repeatable script-message pan-image y +.2
UP {image} repeatable script-message pan-image y -.2
RIGHT {image} repeatable script-message pan-image x +.2
H {image} repeatable script-message pan-image x -.02
J {image} repeatable script-message pan-image y +.02
K {image} repeatable script-message pan-image y -.02
L {image} repeatable script-message pan-image x +.02
Shift+LEFT {image} repeatable script-message pan-image x -.02
Shift+DOWN {image} repeatable script-message pan-image y +.02
Shift+UP {image} repeatable script-message pan-image y -.02
Shift+RIGHT {image} repeatable script-message pan-image x +.02
# Align the image to the window's boundaries.
Ctrl+h {image} no-osd set video-align-x -1
Ctrl+j {image} no-osd set video-align-y 1
Ctrl+k {image} no-osd set video-align-y -1
Ctrl+l {image} no-osd set video-align-x 1
Ctrl+LEFT {image} no-osd set video-align-x -1
Ctrl+DOWN {image} no-osd set video-align-y 1
Ctrl+UP {image} no-osd set video-align-y -1
Ctrl+RIGHT {image} no-osd set video-align-x 1
# Zoom.
= {image} add video-zoom +.25
- {image} add video-zoom -.25
+ {image} add video-zoom +.05
_ {image} add video-zoom -.05
0 {image} no-osd set video-zoom 0; no-osd set panscan 0
# Alternatively, these are easier to reach:
; {image} add video-zoom +.25
: {image} add video-zoom -.25
# Toggle scaling the image to the window.
u {image} no-osd cycle-values video-unscaled yes no; no-osd set video-zoom 0; no-osd set panscan 0
# panscan crops scaled videos with different aspect ratio than the window.
# At 1 it fills black bars completely.
o {image} no-osd set panscan 1; no-osd set video-unscaled no; no-osd set video-zoom 0
# Toggle slideshow mode.
s {image} cycle-values image-display-duration 5 inf; no-osd set video-zoom 0; no-osd set panscan 0; no-osd set video-unscaled no
# Show the current image next to the previous one. This can be used to view
# wide manga pages split in 2 images and is automatically disabled when
# changing playlist position. For something more complex, use
# https://github.com/Dudemanguy/mpv-manga-reader
d {image} script-message double-page-mode
# This mouse gesture executes one of 5 commands configured in
# script-opts/image_bindings.conf depending on the direction you drag the
# mouse.
MBTN_LEFT {image} script-binding gesture
# Don't double click by accident.
MBTN_LEFT_DBL {image} ignore
# Pan the image while holding a mouse button, relative to the clicked point in the window.
MBTN_RIGHT {image} script-binding drag-to-pan
# Pan the image while holding a mouse button, relative to the whole image.
MBTN_MID {image} script-binding align-to-cursor
# Zoom towards where the cursor is hovering.
WHEEL_UP {image} script-message cursor-centric-zoom .1
WHEEL_DOWN {image} script-message cursor-centric-zoom -.1
# On a touchpad:
WHEEL_UP {image} script-message pan-image y -.05
WHEEL_DOWN {image} script-message pan-image y .05
WHEEL_LEFT {image} script-message pan-image x -.05
WHEEL_RIGHT {image} script-message pan-image x .05
Ctrl+WHEEL_UP {image} script-message cursor-centric-zoom .1
Ctrl+WHEEL_DOWN {image} script-message cursor-centric-zoom -.1