You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
7.8 KiB

2 years ago
  1. # mpv keybindings
  2. #
  3. # Location of user-defined bindings: ~/.config/mpv/input.conf
  4. #
  5. # Lines starting with # are comments. Use SHARP to assign the # key.
  6. # Copy this file and uncomment and edit the bindings you want to change.
  7. #
  8. # List of commands and further details: DOCS/man/input.rst
  9. # List of special keys: --input-keylist
  10. # Keybindings testing mode: mpv --input-test --force-window --idle
  11. #
  12. # Use 'ignore' to unbind a key fully (e.g. 'ctrl+a ignore').
  13. #
  14. # Strings need to be quoted and escaped:
  15. # KEY show_text "This is a single backslash: \\ and a quote: \" !"
  16. #
  17. # You can use modifier-key combinations like Shift+Left or Ctrl+Alt+x with
  18. # the modifiers Shift, Ctrl, Alt and Meta (may not work on the terminal).
  19. #
  20. # The default keybindings are hardcoded into the mpv binary.
  21. # You can disable them completely with: --no-input-default-bindings
  22. # Developer note:
  23. # On compilation, this file is baked into the mpv binary, and all lines are
  24. # uncommented (unless '#' is followed by a space) - thus this file defines the
  25. # default key bindings.
  26. # If this is enabled, treat all the following bindings as default.
  27. #default-bindings start
  28. #MOUSE_BTN0 ignore # don't do anything
  29. #MOUSE_BTN0_DBL cycle fullscreen # toggle fullscreen on/off
  30. #MOUSE_BTN2 cycle pause # toggle pause on/off
  31. #MOUSE_BTN3 seek 10
  32. #MOUSE_BTN4 seek -10
  33. #MOUSE_BTN5 add volume 2
  34. #MOUSE_BTN6 add volume -2
  35. # Mouse wheels, touchpad or other input devices that have axes
  36. # if the input devices supports precise scrolling it will also scale the
  37. # numeric value accordingly
  38. #AXIS_UP seek 10
  39. #AXIS_DOWN seek -10
  40. #AXIS_LEFT seek 5
  41. #AXIS_RIGHT seek -5
  42. ## Seek units are in seconds, but note that these are limited by keyframes
  43. RIGHT seek 10
  44. LEFT seek -5
  45. UP seek 20
  46. DOWN seek -20
  47. # Do smaller, always exact (non-keyframe-limited), seeks with shift.
  48. # Don't show them on the OSD (no-osd).
  49. #Shift+RIGHT no-osd seek 1 exact
  50. #Shift+LEFT no-osd seek -1 exact
  51. #Shift+UP no-osd seek 5 exact
  52. #Shift+DOWN no-osd seek -5 exact
  53. # Skip to previous/next subtitle (subject to some restrictions; see manpage)
  54. #Ctrl+LEFT no-osd sub_seek -1
  55. #Ctrl+RIGHT no-osd sub_seek 1
  56. #PGUP add chapter 1 # skip to next chapter
  57. #PGDWN add chapter -1 # skip to previous chapter
  58. #Shift+PGUP seek 600
  59. #Shift+PGDWN seek -600
  60. #[ multiply speed 0.9091 # scale playback speed
  61. #] multiply speed 1.1
  62. #{ multiply speed 0.5
  63. #} multiply speed 2.0
  64. #BS set speed 1.0 # reset speed to normal
  65. #q quit
  66. #Q quit_watch_later
  67. #q {encode} quit
  68. #ESC set fullscreen no
  69. #ESC {encode} quit
  70. #p cycle pause # toggle pause/playback mode
  71. #. frame_step # advance one frame and pause
  72. #, frame_back_step # go back by one frame and pause
  73. #SPACE cycle pause
  74. #> playlist_next # skip to next file
  75. #ENTER playlist_next # skip to next file
  76. #< playlist_prev # skip to previous file
  77. #O osd # cycle through OSD mode
  78. c cycle osd-fractions
  79. #o show_progress
  80. #P show_progress
  81. #I show_text "${filename}" # display filename in osd
  82. #z add sub-delay -0.1 # subtract 100 ms delay from subs
  83. #x add sub-delay +0.1 # add
  84. #ctrl++ add audio-delay 0.100 # this changes audio/video sync
  85. #ctrl+- add audio-delay -0.100
  86. #9 add volume -2
  87. / cycle pause
  88. #0 add volume 2
  89. #* add volume 2
  90. #m cycle mute
  91. #1 add contrast -1
  92. #2 add contrast 1
  93. #3 add brightness -1
  94. #4 add brightness 1
  95. #5 add gamma -1
  96. #6 add gamma 1
  97. #7 add saturation -1
  98. #8 add saturation 1
  99. #d cycle framedrop # cycle through framedrop modes
  100. # toggle deinterlacer (automatically inserts or removes required filter)
  101. d cycle deinterlace
  102. b cycle deband
  103. #r add sub-pos -1 # move subtitles up
  104. #t add sub-pos +1 # down
  105. #v cycle sub-visibility
  106. # stretch SSA/ASS subtitles with anamorphic videos to match historical
  107. #V cycle ass-vsfilter-aspect-compat
  108. # switch between applying no style overrides to SSA/ASS subtitles, and
  109. # overriding them almost completely with the normal subtitle style
  110. #u cycle_values ass-style-override "force" "no"
  111. #j cycle sub # cycle through subtitles
  112. #J cycle sub down # ...backwards
  113. #SHARP cycle audio # switch audio streams
  114. #_ cycle video
  115. #T cycle ontop # toggle video window ontop of other windows
  116. #f cycle fullscreen # toggle fullscreen
  117. #s screenshot # take a screenshot
  118. #S screenshot video # ...without subtitles
  119. #Ctrl+s screenshot window # ...with subtitles and OSD, and scaled
  120. #Alt+s screenshot each-frame # automatically screenshot every frame
  121. #w add panscan -0.1 # zoom out with -panscan 0 -fs
  122. #e add panscan +0.1 # in
  123. # cycle video aspect ratios; "-1" is the container aspect
  124. #A cycle_values video-aspect "16:9" "4:3" "2.35:1" "-1"
  125. #POWER quit
  126. #PLAY cycle pause
  127. #PAUSE cycle pause
  128. #PLAYPAUSE cycle pause
  129. #STOP quit
  130. #FORWARD seek 60
  131. #REWIND seek -60
  132. #NEXT playlist_next
  133. #PREV playlist_prev
  134. #VOLUME_UP add volume 2
  135. #VOLUME_DOWN add volume -2
  136. #MUTE cycle mute
  137. #CLOSE_WIN quit
  138. #CLOSE_WIN {encode} quit
  139. #E cycle edition # next edition
  140. #l ab_loop # Set/clear A-B loop points
  141. #L cycle_values loop "inf" "no" # toggle infinite looping
  142. #ctrl+c quit
  143. # Apple Remote section
  144. #AR_PLAY cycle pause
  145. #AR_PLAY_HOLD quit
  146. #AR_CENTER cycle pause
  147. #AR_CENTER_HOLD quit
  148. #AR_NEXT seek 10
  149. #AR_NEXT_HOLD seek 120
  150. #AR_PREV seek -10
  151. #AR_PREV_HOLD seek -120
  152. #AR_MENU show_progress
  153. #AR_MENU_HOLD cycle mute
  154. #AR_VUP add volume 2
  155. #AR_VUP_HOLD add chapter 1
  156. #AR_VDOWN add volume -2
  157. #AR_VDOWN_HOLD add chapter -1
  158. # For dvdnav:// and bdnav://
  159. # navigation controls during playback
  160. #ENTER {discnav} discnav menu # DISCNAV MENU
  161. # BS {discnav} discnav prev # DISCNAV PREVIOUS menu (in the order chapter->title->root)
  162. # navigation controls when showing menu (additionally to the controls above)
  163. #UP {discnav-menu} discnav up # DISCNAV UP
  164. #DOWN {discnav-menu} discnav down # DISCNAV DOWN
  165. #LEFT {discnav-menu} discnav left # DISCNAV LEFT
  166. #RIGHT {discnav-menu} discnav right # DISCNAV RIGHT
  167. #ENTER {discnav-menu} discnav select # DISCNAV SELECT (ok)
  168. #MOUSE_BTN0 {discnav-menu} discnav mouse
  169. #MOUSE_MOVE {discnav-menu} discnav mouse_move
  170. # For tv://
  171. #h cycle tv-channel -1 # previous channel
  172. #k cycle tv-channel +1 # next channel
  173. #
  174. # Legacy bindings (may or may not be removed in the future)
  175. #
  176. #! add chapter -1 # skip to previous chapter
  177. #@ add chapter 1 # next
  178. #
  179. # Not assigned by default
  180. # (not an exhaustive list of unbound commands)
  181. #
  182. 2 add sub-scale +0.1 # increase subtitle font size
  183. 1 add sub-scale -0.1 # decrease subtitle font size
  184. # ? sub_step -1 # immediately display next subtitle
  185. # ? sub_step +1 # previous
  186. # ? cycle_values window-scale 0.5 2 1 # switch between 1/2, 2x, unresized window size
  187. # ? cycle colormatrix
  188. # ? add audio-delay 0.100 # this changes audio/video sync
  189. # ? add audio-delay -0.100
  190. # ? cycle angle # switch DVD/Bluray angle
  191. # ? add balance -0.1 # adjust audio balance in favor of left
  192. # ? add balance 0.1 # right
  193. # ? cycle sub-forced-only # toggle DVD forced subs
  194. # ? cycle program # cycle transport stream programs
  195. # ? stop # stop playback (quit or enter idle mode)