2020-07-04 14:23:27 +02:00
|
|
|
# mpv keybindings
|
|
|
|
#
|
|
|
|
# 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
|
2023-11-03 14:53:41 +01:00
|
|
|
# Liut of special keys: --input-keylist
|
2020-07-04 14:23:27 +02:00
|
|
|
# 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
|
|
|
|
|
2022-10-26 11:59:03 +02:00
|
|
|
#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
|
2020-07-04 14:23:27 +02:00
|
|
|
|
|
|
|
# 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
|
2022-10-26 11:59:03 +02:00
|
|
|
#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
|
2020-07-04 14:23:27 +02:00
|
|
|
|
|
|
|
## Seek units are in seconds, but note that these are limited by keyframes
|
2022-10-26 11:59:03 +02:00
|
|
|
#RIGHT seek 5 # seek 5 seconds forward
|
|
|
|
#LEFT seek -5 # seek 5 seconds backward
|
|
|
|
#UP seek 60 # seek 1 minute forward
|
|
|
|
#DOWN seek -60 # seek 1 minute backward
|
2020-07-04 14:23:27 +02:00
|
|
|
# Do smaller, always exact (non-keyframe-limited), seeks with shift.
|
|
|
|
# Don't show them on the OSD (no-osd).
|
2022-10-26 11:59:03 +02:00
|
|
|
l no-osd seek 1 exact # seek exactly 1 second forward
|
|
|
|
h no-osd seek -1 exact # seek exactly 1 second backward
|
|
|
|
k no-osd seek 5 exact # seek exactly 5 seconds forward
|
|
|
|
j no-osd seek -5 exact # seek exactly 5 seconds backward
|
|
|
|
#Ctrl+LEFT no-osd sub-seek -1 # seek to the previous subtitle
|
|
|
|
#Ctrl+RIGHT no-osd sub-seek 1 # seek to the next subtitle
|
|
|
|
#Ctrl+Shift+LEFT sub-step -1 # change subtitle timing such that the previous subtitle is displayed
|
|
|
|
#Ctrl+Shift+RIGHT sub-step 1 # change subtitle timing such that the next subtitle is displayed
|
|
|
|
#Alt+left add video-pan-x 0.1 # move the video right
|
|
|
|
#Alt+right add video-pan-x -0.1 # move the video left
|
|
|
|
#Alt+up add video-pan-y 0.1 # move the video down
|
|
|
|
#Alt+down add video-pan-y -0.1 # move the video up
|
2023-10-12 15:12:12 +02:00
|
|
|
Alt++ add video-zoom 0.1 # zoom in
|
|
|
|
Alt+- add video-zoom -0.1 # zoom out
|
2023-11-17 09:27:04 +01:00
|
|
|
Alt+ENTER run "openfilebrowser" "${=path}"
|
2022-10-26 11:59:03 +02:00
|
|
|
#Alt+BS set video-zoom 0 ; set video-pan-x 0 ; set video-pan-y 0 # reset zoom and pan settings
|
|
|
|
#PGUP add chapter 1 # seek to the next chapter
|
|
|
|
#PGDWN add chapter -1 # seek to the previous chapter
|
|
|
|
#Shift+PGUP seek 600 # seek 10 minutes forward
|
|
|
|
#Shift+PGDWN seek -600 # seek 10 minutes backward
|
|
|
|
[ add speed -0.1
|
|
|
|
] add speed 0.1 # increase the playback speed
|
|
|
|
{ multiply speed 0.5 # halve the playback speed
|
|
|
|
} multiply speed 2.0 # double the playback speed
|
|
|
|
#BS set speed 1.0 # reset the speed to normal
|
|
|
|
#Shift+BS revert-seek # undo the previous (or marked) seek
|
|
|
|
#Shift+Ctrl+BS revert-seek mark # mark the position for revert-seek
|
2020-07-04 14:23:27 +02:00
|
|
|
#q quit
|
2022-10-26 11:59:03 +02:00
|
|
|
#Q quit-watch-later # exit and remember the playback position
|
2020-07-04 14:23:27 +02:00
|
|
|
#q {encode} quit 4
|
2022-10-26 11:59:03 +02:00
|
|
|
#ESC set fullscreen no # leave fullscreen
|
2020-07-04 14:23:27 +02:00
|
|
|
#ESC {encode} quit 4
|
|
|
|
#p cycle pause # toggle pause/playback mode
|
|
|
|
#. frame-step # advance one frame and pause
|
|
|
|
#, frame-back-step # go back by one frame and pause
|
2022-10-26 11:59:03 +02:00
|
|
|
#SPACE cycle pause # toggle pause/playback mode
|
|
|
|
#> playlist-next # skip to the next file
|
|
|
|
#ENTER 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
|
|
|
|
#P 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
|
|
|
|
#` script-binding console/enable # open the console
|
|
|
|
#z add sub-delay -0.1 # shift subtitles 100 ms earlier
|
|
|
|
#Z add sub-delay +0.1 # delay subtitles by 100 ms
|
|
|
|
#x add sub-delay +0.1 # delay subtitles by 100 ms
|
|
|
|
#ctrl++ add audio-delay 0.100 # change audio/video sync by delaying the audio
|
|
|
|
#ctrl+- add audio-delay -0.100 # change audio/video sync by shifting the audio earlier
|
|
|
|
#Shift+g add sub-scale +0.1 # increase the subtitle font size
|
|
|
|
#Shift+f add sub-scale -0.1 # decrease the subtitle font size
|
2020-07-04 14:23:27 +02:00
|
|
|
#9 add volume -2
|
|
|
|
#/ add volume -2
|
|
|
|
#0 add volume 2
|
|
|
|
#* add volume 2
|
2022-10-26 11:59:03 +02:00
|
|
|
#m cycle mute # toggle mute
|
2020-07-04 14:23:27 +02:00
|
|
|
#1 add contrast -1
|
|
|
|
#2 add contrast 1
|
|
|
|
#3 add brightness -1
|
|
|
|
#4 add brightness 1
|
|
|
|
#5 add gamma -1
|
|
|
|
#6 add gamma 1
|
|
|
|
#7 add saturation -1
|
|
|
|
#8 add saturation 1
|
2022-10-26 11:59:03 +02:00
|
|
|
#Alt+0 set current-window-scale 0.5 # halve the window size
|
|
|
|
#Alt+1 set current-window-scale 1.0 # reset the window size
|
|
|
|
#Alt+2 set current-window-scale 2.0 # double the window size
|
|
|
|
#d cycle deinterlace # toggle the deinterlacing filter
|
2020-07-04 14:23:27 +02:00
|
|
|
#r add sub-pos -1 # move subtitles up
|
2022-10-26 11:59:03 +02:00
|
|
|
#R add sub-pos +1 # move subtitles down
|
|
|
|
#t add sub-pos +1 # move subtitles down
|
|
|
|
#v cycle sub-visibility # hide or show the subtitles
|
|
|
|
#Alt+v cycle secondary-sub-visibility # hide or show the secondary subtitles
|
|
|
|
#V cycle sub-ass-vsfilter-aspect-compat # toggle stretching SSA/ASS subtitles with anamorphic videos to match the historical renderer
|
|
|
|
#u cycle-values sub-ass-override "force" "no" # toggle overriding SSA/ASS subtitle styles with the normal styles
|
|
|
|
#j cycle sub # switch subtitle track
|
|
|
|
#J cycle sub down # switch subtitle track backwards
|
|
|
|
#SHARP cycle audio # switch audio track
|
|
|
|
#_ cycle video # switch video track
|
|
|
|
#T cycle ontop # toggle placing the video on top of other windows
|
2020-07-04 14:23:27 +02:00
|
|
|
#f cycle fullscreen # toggle fullscreen
|
2022-10-26 11:59:03 +02:00
|
|
|
#s screenshot # take a screenshot of the video in its original resolution with subtitles
|
|
|
|
#S screenshot video # take a screenshot of the video in its original resolution without subtitles
|
|
|
|
#Ctrl+s screenshot window # take a screenshot of the window with OSD and subtitles
|
|
|
|
#Alt+s screenshot each-frame # automatically screenshot every frame; issue this command again to stop taking screenshots
|
|
|
|
#w add panscan -0.1 # decrease panscan
|
|
|
|
#W add panscan +0.1 # shrink black bars by cropping the video
|
|
|
|
#e add panscan +0.1 # shrink black bars by cropping the video
|
|
|
|
#A cycle-values video-aspect-override "16:9" "4:3" "2.35:1" "-1" # cycle the video aspect ratio ("-1" is the container aspect)
|
2020-07-04 14:23:27 +02:00
|
|
|
#POWER quit
|
2022-10-26 11:59:03 +02:00
|
|
|
#PLAY cycle pause # toggle pause/playback mode
|
|
|
|
#PAUSE cycle pause # toggle pause/playback mode
|
|
|
|
#PLAYPAUSE cycle pause # toggle pause/playback mode
|
|
|
|
#PLAYONLY set pause no # unpause
|
|
|
|
#PAUSEONLY set pause yes # pause
|
2020-07-04 14:23:27 +02:00
|
|
|
#STOP quit
|
2022-10-26 11:59:03 +02:00
|
|
|
#FORWARD seek 60 # seek 1 minute forward
|
|
|
|
#REWIND seek -60 # seek 1 minute backward
|
|
|
|
#NEXT playlist-next # skip to the next file
|
|
|
|
#PREV playlist-prev # skip to the previous file
|
2020-07-04 14:23:27 +02:00
|
|
|
#VOLUME_UP add volume 2
|
|
|
|
#VOLUME_DOWN add volume -2
|
2022-10-26 11:59:03 +02:00
|
|
|
#MUTE cycle mute # toggle mute
|
2020-07-04 14:23:27 +02:00
|
|
|
#CLOSE_WIN quit
|
|
|
|
#CLOSE_WIN {encode} quit 4
|
2022-10-26 11:59:03 +02:00
|
|
|
#ctrl+w quit
|
|
|
|
#E cycle edition # switch edition
|
|
|
|
#l ab-loop # set/clear A-B loop points
|
2023-10-12 15:12:12 +02:00
|
|
|
ctrl+l cycle-values loop-playlist yes no ; show-text "${?=loop-playlist==inf:Playlist looping enabled}${?=loop-playlist==no:Playlist looping disabled}"
|
|
|
|
L cycle-values loop-file "inf" "no" # toggle infinite looping
|
2020-07-04 14:23:27 +02:00
|
|
|
#ctrl+c quit 4
|
2022-10-26 11:59:03 +02:00
|
|
|
#DEL script-binding osc/visibility # cycle OSC visibility between never, auto (mouse-move) and always
|
|
|
|
#ctrl+h cycle-values hwdec "auto" "no" # toggle hardware decoding
|
|
|
|
#F8 show-text ${playlist} # show the playlist
|
|
|
|
#F9 show-text ${track-list} # show the list of video, audio and sub tracks
|
2020-07-04 14:23:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Legacy bindings (may or may not be removed in the future)
|
|
|
|
#
|
2022-10-26 11:59:03 +02:00
|
|
|
#! add chapter -1 # seek to the previous chapter
|
|
|
|
#@ add chapter 1 # seek to the next chapter
|
2020-07-04 14:23:27 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Not assigned by default
|
|
|
|
# (not an exhaustive list of unbound commands)
|
|
|
|
#
|
|
|
|
|
|
|
|
# ? cycle sub-forced-only # toggle DVD forced subs
|
|
|
|
# ? stop # stop playback (quit or enter idle mode)
|