input.conf 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  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 1
  34. #MOUSE_BTN6 add volume -1
  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 5
  44. #LEFT seek -5
  45. #UP seek 60
  46. #DOWN seek -60
  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. #PGUP add chapter 1 # skip to next chapter
  54. #PGDWN add chapter -1 # skip to previous chapter
  55. #Shift+PGUP seek 600
  56. #Shift+PGDWN seek -600
  57. #[ multiply speed 0.9091 # scale playback speed
  58. #] multiply speed 1.1
  59. #{ multiply speed 0.5
  60. #} multiply speed 2.0
  61. #BS set speed 1.0 # reset speed to normal
  62. #q quit
  63. #Q quit_watch_later
  64. #q {encode} quit
  65. #ESC quit
  66. #ESC {encode} quit
  67. #p cycle pause # toggle pause/playback mode
  68. #. frame_step # advance one frame and pause
  69. #, frame_back_step # go back by one frame and pause
  70. #SPACE cycle pause
  71. #> playlist_next # skip to next file
  72. #ENTER playlist_next force # skip to next file or quit
  73. #< playlist_prev # skip to previous file
  74. #O osd # cycle through OSD mode
  75. #o show_progress
  76. #P show_progress
  77. #I show_text "${filename}" # display filename in osd
  78. #z add sub-delay -0.1 # subtract 100 ms delay from subs
  79. #x add sub-delay +0.1 # add
  80. #ctrl++ add audio-delay 0.100 # this changes audio/video sync
  81. #ctrl+- add audio-delay -0.100
  82. #9 add volume -1
  83. #/ add volume -1
  84. #0 add volume 1
  85. #* add volume 1
  86. #m cycle mute
  87. #1 add contrast -1
  88. #2 add contrast 1
  89. #3 add brightness -1
  90. #4 add brightness 1
  91. #5 add gamma -1
  92. #6 add gamma 1
  93. #7 add saturation -1
  94. #8 add saturation 1
  95. #d cycle framedrop # cycle through framedrop modes
  96. # toggle deinterlacer (automatically inserts or removes required filter)
  97. #D cycle deinterlace
  98. #r add sub-pos -1 # move subtitles up
  99. #t add sub-pos +1 # down
  100. #v cycle sub-visibility
  101. # stretch SSA/ASS subtitles with anamorphic videos to match historical
  102. #V cycle ass-vsfilter-aspect-compat
  103. #j cycle sub # cycle through subtitles
  104. #J cycle sub down # ...backwards
  105. #SHARP cycle audio # switch audio streams
  106. #_ cycle video
  107. #T cycle ontop # toggle video window ontop of other windows
  108. #f cycle fullscreen # toggle fullscreen
  109. #s screenshot # take a screenshot
  110. #S screenshot video # ...without subtitles
  111. #Alt+s screenshot - each-frame # automatically screenshot every frame
  112. #w add panscan -0.1 # zoom out with -panscan 0 -fs
  113. #e add panscan +0.1 # in
  114. #POWER quit
  115. #MENU cycle osd
  116. #PLAY cycle pause
  117. #PAUSE cycle pause
  118. #PLAYPAUSE cycle pause
  119. #STOP quit
  120. #FORWARD seek 60
  121. #REWIND seek -60
  122. #NEXT playlist_next
  123. #PREV playlist_prev
  124. #VOLUME_UP add volume 1
  125. #VOLUME_DOWN add volume -1
  126. #MUTE cycle mute
  127. #CLOSE_WIN quit
  128. #CLOSE_WIN {encode} quit
  129. #E cycle edition # next edition
  130. #ctrl+c quit
  131. # Apple Remote section
  132. #AR_PLAY cycle pause
  133. #AR_PLAY_HOLD quit
  134. #AR_CENTER cycle pause
  135. #AR_CENTER_HOLD quit
  136. #AR_NEXT seek 10
  137. #AR_NEXT_HOLD seek 120
  138. #AR_PREV seek -10
  139. #AR_PREV_HOLD seek -120
  140. #AR_MENU show_progress
  141. #AR_MENU_HOLD cycle mute
  142. #AR_VUP add volume 1
  143. #AR_VUP_HOLD add chapter 1
  144. #AR_VDOWN add volume -1
  145. #AR_VDOWN_HOLD add chapter -1
  146. # Joystick section
  147. # WARNING: joystick support has to be explicitly enabled at
  148. # compiletime with --enable-joystick
  149. #
  150. #JOY_AXIS0_PLUS seek 10
  151. #JOY_AXIS0_MINUS seek -10
  152. #JOY_AXIS1_MINUS seek 60
  153. #JOY_AXIS1_PLUS seek -60
  154. #JOY_BTN0 cycle pause
  155. #JOY_BTN1 cycle osd
  156. #JOY_BTN2 add volume 1
  157. #JOY_BTN3 add volume -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. # ? add sub-scale +0.1 # increase subtitle font size
  183. # ? 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)
  196. F2 cycle_values video-aspect "16:9" "16:10" "4:3" "2.35:1" "-1"