💾 Archived View for ait.place › dot › mpv › .config › mpv › input.conf.txt captured on 2022-04-28 at 18:08:27.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

🚧 View Differences

-=-=-=-=-=-=-

# Keybinds for mpv
#
# Location of user-defined bindings: ~/.config/mpv/input.conf
#
# Lines starting with # are comments. Use SHARP to assign the # key.
# Copy this file and uncomment and edit the bindings you want to change.
#
# List of commands and further details: DOCS/man/input.rst
# List of special keys: --input-keylist
# Keybindings testing mode: mpv --input-test --force-window --idle
#
# Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore').
#
# Strings need to be quoted and escaped:
#   KEY show-text "This is a single backslash: \\ and a quote: \" !"
#
# You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
# the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal).
#
# The default keybindings are hardcoded into the mpv binary.
# You can disable them completely with: --no-input-default-bindings

# Developer note:
# On compilation, this file is baked into the mpv binary, and all lines are
# uncommented (unless '#' is followed by a space) - thus this file defines the
# default key bindings.

# If this is enabled, treat all the following bindings as default.
#default-bindings start

#MBTN_LEFT     ignore              # don't do anything
#MBTN_LEFT_DBL cycle fullscreen    # toggle fullscreen
#MBTN_RIGHT    cycle pause         # toggle pause/playback mode
#MBTN_BACK     playlist-prev       # skip to the previous file
#MBTN_FORWARD  playlist-next       # skip to the next file

# Mouse wheels, touchpad or other input devices that have axes
# if the input devices supports precise scrolling it will also scale the
# numeric value accordingly
#WHEEL_UP      seek 10          # seek 10 seconds forward
#WHEEL_DOWN    seek -10         # seek 10 seconds backward
#WHEEL_LEFT    add volume -2
#WHEEL_RIGHT   add volume 2

Q quit
q quit-watch-later                     # exit and remember the playback position

. frame-step                           # advance one frame and pause
, frame-back-step                      # go back by one frame and pause
SPACE cycle pause                      # toggle pause/playback mode
> playlist-next                        # skip to the next file
< playlist-prev                        # skip to the previous file
O no-osd cycle-values osd-level 3 1    # toggle displaying the OSD on user interaction or always
o show-progress                        # show playback progress
i script-binding stats/display-stats   # display information and statistics
I script-binding stats/display-stats-toggle # toggle displaying information and statistics
m cycle mute                           # toggle mute
f cycle fullscreen                     # toggle fullscreen
s screenshot window                           # take a screenshot of the video in its original resolution with subtitles
L cycle-values loop-file "inf" "no"    # toggle infinite looping

ESC set fullscreen no                  # leave fullscreen

[ add speed -0.25
] add speed 0.25
BS set speed 1.0                       # reset the speed to normal

# Unbind keybindings that have dup
x ignore
t ignore
#P ignore
#! ignore
#* ignore
#/ ignore
#ENTER ignore

p add panscan -0.1
P add panscan 0.1

Alt+h add video-pan-x  0.1
Alt+l add video-pan-x -0.1
Alt+k add video-pan-y  0.1
Alt+j add video-pan-y -0.1
n ab-loop

#terminal scrollwheel
0x19 seek 5
0x5 seek -5

#vi style seeking keys
h seek -5
l seek 5
j seek -60
k seek 60
Shift+h  no-osd seek -1 exact
Shift+l  no-osd seek  1 exact
Shift+j  no-osd seek -5 exact
Shift+k  no-osd seek  5 exact
Ctrl+h   no-osd sub-seek -1         # seek to the previous subtitle
Ctrl+l   no-osd sub-seek  1         # seek to the next subtitle
Ctrl+Shift+h sub-step -1            # change subtitle timing such that the previous subtitle is displayed
Ctrl+Shift+l sub-step 1            # change subtitle timing such that the next subtitle is displayed
: script-binding console/enable


- add chapter -1                       # seek to the previous chapter
= add chapter 1                        # seek to the next chapter

#Switch subs
Ctrl+s cycle sub

# Skip to previous/next subtitle (subject to some restrictions; see manpage)
#Ctrl+h   no-osd sub-seek -1
#Ctrl+l  no-osd sub-seek  1
# Adjust timing to previous/next subtitle
Ctrl+Shift+h sub-step -1
Ctrl+Shift+l sub-step 1

Ctrl+l cycle-values loop-file "inf" "no"    # toggle infinite looping

# use sound system (for reduced cpu usage
Ctrl+# cycle-values ao "null" "pulse"

y script-message-to yank yank-path
Y script-message-to yank yank-streampath

#p show_text ${playlist}               # show playlist
t show_text ${track-list}             # show list of audio/sub streams
? show_text ${chapter-list}

MBTN_MID cycle mute
MBTN_LEFT show-progress
Shift+WHEEL_UP add volume +2
Shift+WHEEL_DOWN add volume -2