input.conf 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 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. # 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 4
  68. #ESC set fullscreen no
  69. #ESC {encode} quit 4
  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 no-osd cycle_values osd-level 3 1 # cycle through OSD mode
  78. #o show-progress
  79. #P show-progress
  80. #I show-text "${filename}" # display filename in osd
  81. #z add sub-delay -0.1 # subtract 100 ms delay from subs
  82. #x add sub-delay +0.1 # add
  83. #ctrl++ add audio-delay 0.100 # this changes audio/video sync
  84. #ctrl+- add audio-delay -0.100
  85. #9 add volume -2
  86. #/ add volume -2
  87. #0 add volume 2
  88. #* add volume 2
  89. #m cycle mute
  90. #1 add contrast -1
  91. #2 add contrast 1
  92. #3 add brightness -1
  93. #4 add brightness 1
  94. #5 add gamma -1
  95. #6 add gamma 1
  96. #7 add saturation -1
  97. #8 add saturation 1
  98. #Alt+0 set window-scale 0.5
  99. #Alt+1 set window-scale 1.0
  100. #Alt+2 set window-scale 2.0
  101. Alt+9 set window-scale 0.25
  102. # toggle deinterlacer (automatically inserts or removes required filter)
  103. #d cycle deinterlace
  104. #r add sub-pos -1 # move subtitles up
  105. #t add sub-pos +1 # down
  106. #v cycle sub-visibility
  107. # stretch SSA/ASS subtitles with anamorphic videos to match historical
  108. #V cycle ass-vsfilter-aspect-compat
  109. # switch between applying no style overrides to SSA/ASS subtitles, and
  110. # overriding them almost completely with the normal subtitle style
  111. #u cycle-values ass-style-override "force" "no"
  112. #j cycle sub # cycle through subtitles
  113. #J cycle sub down # ...backwards
  114. #SHARP cycle audio # switch audio streams
  115. #_ cycle video
  116. #T cycle ontop # toggle video window ontop of other windows
  117. #f cycle fullscreen # toggle fullscreen
  118. #s screenshot # take a screenshot
  119. #S screenshot video # ...without subtitles
  120. #Ctrl+s screenshot window # ...with subtitles and OSD, and scaled
  121. #Alt+s screenshot each-frame # automatically screenshot every frame
  122. #w add panscan -0.1 # zoom out with -panscan 0 -fs
  123. #e add panscan +0.1 # in
  124. # cycle video aspect ratios; "-1" is the container aspect
  125. #A cycle-values video-aspect "16:9" "4:3" "2.35:1" "-1"
  126. #POWER quit
  127. #PLAY cycle pause
  128. #PAUSE cycle pause
  129. #PLAYPAUSE cycle pause
  130. #STOP quit
  131. #FORWARD seek 60
  132. #REWIND seek -60
  133. #NEXT playlist-next
  134. #PREV playlist-prev
  135. #VOLUME_UP add volume 2
  136. #VOLUME_DOWN add volume -2
  137. #MUTE cycle mute
  138. #CLOSE_WIN quit
  139. #CLOSE_WIN {encode} quit 4
  140. #E cycle edition # next edition
  141. #l ab-loop # Set/clear A-B loop points
  142. #L cycle-values loop "inf" "no" # toggle infinite looping
  143. #ctrl+c quit 4
  144. # Apple Remote section
  145. #AR_PLAY cycle pause
  146. #AR_PLAY_HOLD quit
  147. #AR_CENTER cycle pause
  148. #AR_CENTER_HOLD quit
  149. #AR_NEXT seek 10
  150. #AR_NEXT_HOLD seek 120
  151. #AR_PREV seek -10
  152. #AR_PREV_HOLD seek -120
  153. #AR_MENU show-progress
  154. #AR_MENU_HOLD cycle mute
  155. #AR_VUP add volume 2
  156. #AR_VUP_HOLD add chapter 1
  157. #AR_VDOWN add volume -2
  158. #AR_VDOWN_HOLD add chapter -1
  159. # For tv://
  160. #h cycle tv-channel -1 # previous channel
  161. #k cycle tv-channel +1 # next channel
  162. # For dvb://
  163. #H cycle dvb-channel-name -1 # previous channel
  164. #K cycle dvb-channel-name +1 # next channel
  165. #
  166. # Legacy bindings (may or may not be removed in the future)
  167. #
  168. #! add chapter -1 # skip to previous chapter
  169. #@ add chapter 1 # next
  170. #
  171. # Not assigned by default
  172. # (not an exhaustive list of unbound commands)
  173. #
  174. # ? add sub-scale +0.1 # increase subtitle font size
  175. # ? add sub-scale -0.1 # decrease subtitle font size
  176. # ? sub-step -1 # immediately display next subtitle
  177. # ? sub-step +1 # previous
  178. # ? cycle angle # switch DVD/Bluray angle
  179. # ? add balance -0.1 # adjust audio balance in favor of left
  180. # ? add balance 0.1 # right
  181. # ? cycle sub-forced-only # toggle DVD forced subs
  182. # ? cycle program # cycle transport stream programs
  183. # ? stop # stop playback (quit or enter idle mode)
  184. ## From https://wiki.archlinux.org/index.php/mpv
  185. Alt+RIGHT add video-rotate 90
  186. Alt+LEFT add video-rotate -90
  187. Alt+- add video-zoom -0.25
  188. Alt+= add video-zoom 0.25
  189. Alt+j add video-pan-x -0.05
  190. Alt+l add video-pan-x 0.05
  191. Alt+i add video-pan-y 0.05
  192. Alt+k add video-pan-y -0.05