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.

233 lines
8.0KB

  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 ignore
  32. MOUSE_BTN4 ignore
  33. MOUSE_BTN5 ignore
  34. MOUSE_BTN6 ignore
  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 ignore
  39. AXIS_DOWN ignore
  40. AXIS_LEFT ignore
  41. AXIS_RIGHT ignore
  42. a cycle audio
  43. KP7 seek -3
  44. KP9 seek 3
  45. KP4 seek -30
  46. KP6 seek 30
  47. KP1 seek -60
  48. KP3 seek 60
  49. KP2 add volume -2
  50. KP8 add volume 2
  51. / add sub-delay -0.1
  52. * add sub-delay 0.1
  53. + add audio-delay -0.1
  54. - add audio-delay 0.1
  55. n playlist_next
  56. m playlist_prev
  57. KP0 show_progress
  58. w show_text "${playlist}"
  59. ## Seek units are in seconds, but note that these are limited by keyframes
  60. #RIGHT seek 5
  61. #LEFT seek -5
  62. #UP seek 60
  63. #DOWN seek -60
  64. # Do smaller, always exact (non-keyframe-limited), seeks with shift.
  65. # Don't show them on the OSD (no-osd).
  66. #Shift+RIGHT no-osd seek 1 - exact
  67. #Shift+LEFT no-osd seek -1 - exact
  68. #Shift+UP no-osd seek 5 - exact
  69. #Shift+DOWN no-osd seek -5 - exact
  70. # Skip to previous/next subtitle (subject to some restrictions; see manpage)
  71. #Ctrl+LEFT no-osd sub_seek -1
  72. #Ctrl+RIGHT no-osd sub_seek 1
  73. #PGUP add chapter 1 # skip to next chapter
  74. #PGDWN add chapter -1 # skip to previous chapter
  75. #Shift+PGUP seek 600
  76. #Shift+PGDWN seek -600
  77. #[ multiply speed 0.9091 # scale playback speed
  78. #] multiply speed 1.1
  79. #{ multiply speed 0.5
  80. #} multiply speed 2.0
  81. #BS set speed 1.0 # reset speed to normal
  82. #q quit
  83. #Q quit_watch_later
  84. #q {encode} quit
  85. #ESC set fullscreen no
  86. #ESC {encode} quit
  87. #p cycle pause # toggle pause/playback mode
  88. #. frame_step # advance one frame and pause
  89. #, frame_back_step # go back by one frame and pause
  90. #SPACE cycle pause
  91. #> playlist_next # skip to next file
  92. #ENTER playlist_next # skip to next file
  93. #< playlist_prev # skip to previous file
  94. #O osd # cycle through OSD mode
  95. #o show_progress
  96. #P show_progress
  97. #I show_text "${filename}" # display filename in osd
  98. #z add sub-delay -0.1 # subtract 100 ms delay from subs
  99. #x add sub-delay +0.1 # add
  100. #ctrl++ add audio-delay 0.100 # this changes audio/video sync
  101. #ctrl+- add audio-delay -0.100
  102. #9 add volume -2
  103. #/ add volume -2
  104. #0 add volume 2
  105. #* add volume 2
  106. #m cycle mute
  107. #1 add contrast -1
  108. #2 add contrast 1
  109. #3 add brightness -1
  110. #4 add brightness 1
  111. #5 add gamma -1
  112. #6 add gamma 1
  113. #7 add saturation -1
  114. #8 add saturation 1
  115. #d cycle framedrop # cycle through framedrop modes
  116. # toggle deinterlacer (automatically inserts or removes required filter)
  117. #D cycle deinterlace
  118. #r add sub-pos -1 # move subtitles up
  119. #t add sub-pos +1 # down
  120. #v cycle sub-visibility
  121. # stretch SSA/ASS subtitles with anamorphic videos to match historical
  122. #V cycle ass-vsfilter-aspect-compat
  123. #j cycle sub # cycle through subtitles
  124. #J cycle sub down # ...backwards
  125. #SHARP cycle audio # switch audio streams
  126. #_ cycle video
  127. #T cycle ontop # toggle video window ontop of other windows
  128. #f cycle fullscreen # toggle fullscreen
  129. #s screenshot # take a screenshot
  130. #S screenshot video # ...without subtitles
  131. #Alt+s screenshot - each-frame # automatically screenshot every frame
  132. #w add panscan -0.1 # zoom out with -panscan 0 -fs
  133. #e add panscan +0.1 # in
  134. # cycle video aspect ratios; "-1" is the container aspect
  135. #A cycle_values video-aspect "16:9" "4:3" "2.35:1" "-1"
  136. #POWER quit
  137. #MENU cycle osd
  138. #PLAY cycle pause
  139. #PAUSE cycle pause
  140. #PLAYPAUSE cycle pause
  141. #STOP quit
  142. #FORWARD seek 60
  143. #REWIND seek -60
  144. #NEXT playlist_next
  145. #PREV playlist_prev
  146. #VOLUME_UP add volume 2
  147. #VOLUME_DOWN add volume -2
  148. #MUTE cycle mute
  149. #CLOSE_WIN quit
  150. #CLOSE_WIN {encode} quit
  151. #E cycle edition # next edition
  152. #l ab_loop # Set/clear A-B loop points
  153. #ctrl+c quit
  154. # Apple Remote section
  155. #AR_PLAY cycle pause
  156. #AR_PLAY_HOLD quit
  157. #AR_CENTER cycle pause
  158. #AR_CENTER_HOLD quit
  159. #AR_NEXT seek 10
  160. #AR_NEXT_HOLD seek 120
  161. #AR_PREV seek -10
  162. #AR_PREV_HOLD seek -120
  163. #AR_MENU show_progress
  164. #AR_MENU_HOLD cycle mute
  165. #AR_VUP add volume 2
  166. #AR_VUP_HOLD add chapter 1
  167. #AR_VDOWN add volume -2
  168. #AR_VDOWN_HOLD add chapter -1
  169. # Joystick section
  170. # WARNING: joystick support has to be explicitly enabled at
  171. # compiletime with --enable-joystick
  172. #
  173. #JOY_AXIS0_PLUS seek 10
  174. #JOY_AXIS0_MINUS seek -10
  175. #JOY_AXIS1_MINUS seek 60
  176. #JOY_AXIS1_PLUS seek -60
  177. #JOY_BTN0 cycle pause
  178. #JOY_BTN1 cycle osd
  179. #JOY_BTN2 add volume 2
  180. #JOY_BTN3 add volume -2
  181. # For dvdnav:// and bdnav://
  182. # navigation controls during playback
  183. #ENTER {discnav} discnav menu # DISCNAV MENU
  184. # BS {discnav} discnav prev # DISCNAV PREVIOUS menu (in the order chapter->title->root)
  185. # navigation controls when showing menu (additionally to the controls above)
  186. #UP {discnav-menu} discnav up # DISCNAV UP
  187. #DOWN {discnav-menu} discnav down # DISCNAV DOWN
  188. #LEFT {discnav-menu} discnav left # DISCNAV LEFT
  189. #RIGHT {discnav-menu} discnav right # DISCNAV RIGHT
  190. #ENTER {discnav-menu} discnav select # DISCNAV SELECT (ok)
  191. #MOUSE_BTN0 {discnav-menu} discnav mouse
  192. #MOUSE_MOVE {discnav-menu} discnav mouse_move
  193. # For tv://
  194. #h cycle tv-channel -1 # previous channel
  195. #k cycle tv-channel +1 # next channel
  196. #
  197. # Legacy bindings (may or may not be removed in the future)
  198. #
  199. #! add chapter -1 # skip to previous chapter
  200. #@ add chapter 1 # next
  201. #
  202. # Not assigned by default
  203. # (not an exhaustive list of unbound commands)
  204. #
  205. # ? add sub-scale +0.1 # increase subtitle font size
  206. # ? add sub-scale -0.1 # decrease subtitle font size
  207. # ? sub_step -1 # immediately display next subtitle
  208. # ? sub_step +1 # previous
  209. # ? cycle_values window-scale 0.5 2 1 # switch between 1/2, 2x, unresized window size
  210. # ? cycle colormatrix
  211. # ? add audio-delay 0.100 # this changes audio/video sync
  212. # ? add audio-delay -0.100
  213. # ? cycle angle # switch DVD/Bluray angle
  214. # ? add balance -0.1 # adjust audio balance in favor of left
  215. # ? add balance 0.1 # right
  216. # ? cycle sub-forced-only # toggle DVD forced subs
  217. # ? cycle program # cycle transport stream programs
  218. # ? stop # stop playback (quit or enter idle mode)