-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.conf
111 lines (91 loc) · 4.61 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
# 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
# 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
# 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 -.1
j {image} repeatable script-message pan-image y +.1
k {image} repeatable script-message pan-image y -.1
l {image} repeatable script-message pan-image x +.1
LEFT {image} repeatable script-message pan-image x -.1
DOWN {image} repeatable script-message pan-image y +.1
UP {image} repeatable script-message pan-image y -.1
RIGHT {image} repeatable script-message pan-image x +.1
H {image} repeatable script-message pan-image x -.01
J {image} repeatable script-message pan-image y +.01
K {image} repeatable script-message pan-image y -.01
L {image} repeatable script-message pan-image x +.01
Shift+LEFT {image} repeatable script-message pan-image x -.01
Shift+DOWN {image} repeatable script-message pan-image y +.01
Shift+UP {image} repeatable script-message pan-image y -.01
Shift+RIGHT {image} repeatable script-message pan-image x +.01
# 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 0.1 # zoom in
- {image} add video-zoom -0.1 # zoom out
+ {image} add video-zoom 0.01 # zoom in slowly
_ {image} add video-zoom -0.01 # zoom out slowly
0 {image} no-osd set video-zoom 0; no-osd set panscan 0
# Alternatively, these are easier to reach:
; {image} add video-zoom +0.1
: {image} add video-zoom -0.1
# 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 the slideshow and change its duration.
SPACE {image} cycle-values image-display-duration inf 5; set pause no
[ {image} add image-display-duration -1
] {image} add image-display-duration 1
{ {image} multiply image-display-duration 0.5
} {image} multiply image-display-duration 2
# 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