uosc.conf 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. # Display style of current position. available: line, bar
  2. timeline_style=line
  3. # Line display style config
  4. timeline_line_width=2
  5. # Timeline size when fully expanded, in pixels, 0 to disable
  6. timeline_size=40
  7. # Comma separated states when element should always be fully visible.
  8. # Available: paused, audio, image, video, idle, windowed, fullscreen
  9. timeline_persistency=
  10. # Top border of background color to help visually separate timeline from video
  11. timeline_border=1
  12. # When scrolling above timeline, wheel will seek by this amount of seconds
  13. timeline_step=5
  14. # Render cache indicators for streaming content
  15. timeline_cache=yes
  16. # When to display an always visible progress bar (minimized timeline). Can be: windowed, fullscreen, always, never
  17. # Can also be toggled on demand with `toggle-progress` command.
  18. progress=windowed
  19. progress_size=2
  20. progress_line_width=20
  21. # A comma delimited list of controls above the timeline. Set to `never` to disable.
  22. # Parameter spec: enclosed in `{}` means value, enclosed in `[]` means optional
  23. # Full item syntax: `[<[!]{disposition1}[,[!]{dispositionN}]>]{element}[:{paramN}][#{badge}[>{limit}]][?{tooltip}]`
  24. # Common properties:
  25. # `{icon}` - parameter used to specify an icon name (example: `face`)
  26. # - pick here: https://fonts.google.com/icons?icon.platform=web&icon.set=Material+Icons&icon.style=Rounded
  27. # `{element}`s and their parameters:
  28. # `{shorthand}` - preconfigured shorthands:
  29. # `play-pause`, `menu`, `subtitles`, `audio`, `video`, `playlist`,
  30. # `chapters`, `editions`, `stream-quality`, `open-file`, `items`,
  31. # `next`, `prev`, `first`, `last`, `audio-device`, `fullscreen`,
  32. # `loop-playlist`, `loop-file`, `shuffle`
  33. # `speed[:{scale}]` - display speed slider, [{scale}] - factor of controls_size, default: 1.3
  34. # `command:{icon}:{command}` - button that executes a {command} when pressed
  35. # `toggle:{icon}:{prop}[@{owner}]` - button that toggles mpv property
  36. # `cycle:{default_icon}:{prop}[@{owner}]:{value1}[={icon1}][!]/{valueN}[={iconN}][!]`
  37. # - button that cycles mpv property between values, each optionally having different icon and active flag
  38. # - presence of `!` at the end will style the button as active
  39. # - `{owner}` is the name of a script that manages this property if any
  40. # `gap[:{scale}]` - display an empty gap
  41. # {scale} - factor of controls_size, default: 0.3
  42. # `space` - fills all available space between previous and next item, useful to align items to the right
  43. # - multiple spaces divide the available space among themselves, which can be used for centering
  44. # Item visibility control:
  45. # `<[!]{disposition1}[,[!]{dispositionN}]>` - optional prefix to control element's visibility
  46. # - `{disposition}` can be one of:
  47. # - `idle` - true if mpv is in idle mode (no file loaded)
  48. # - `image` - true if current file is a single image
  49. # - `audio` - true for audio only files
  50. # - `video` - true for files with a video track
  51. # - `has_many_video` - true for files with more than one video track
  52. # - `has_image` - true for files with a cover or other image track
  53. # - `has_audio` - true for files with an audio track
  54. # - `has_many_audio` - true for files with more than one audio track
  55. # - `has_sub` - true for files with an subtitle track
  56. # - `has_many_sub` - true for files with more than one subtitle track
  57. # - `has_many_edition` - true for files with more than one edition
  58. # - `has_chapter` - true for files with chapter list
  59. # - `stream` - true if current file is read from a stream
  60. # - `has_playlist` - true if current playlist has 2 or more items in it
  61. # - prefix with `!` to negate the required disposition
  62. # Examples:
  63. # - `<stream>stream-quality` - show stream quality button only for streams
  64. # - `<has_audio,!audio>audio` - show audio tracks button for all files that have
  65. # an audio track, but are not exclusively audio only files
  66. # Place `#{badge}[>{limit}]` after the element params to give it a badge. Available badges:
  67. # `sub`, `audio`, `video` - track type counters
  68. # `{mpv_prop}` - any mpv prop that makes sense to you: https://mpv.io/manual/master/#property-list
  69. # - if prop value is an array it'll display its size
  70. # `>{limit}` will display the badge only if it's numerical value is above this threshold.
  71. # Example: `#audio>1`
  72. # Place `?{tooltip}` after the element config to give it a tooltip.
  73. # Example implementations:
  74. # menu = command:menu:script-binding uosc/menu-blurred?Menu
  75. # subtitles = command:subtitles:script-binding uosc/subtitles#sub?Subtitles
  76. # fullscreen = cycle:crop_free:fullscreen:no/yes=fullscreen_exit!?Fullscreen
  77. # loop-playlist = cycle:repeat:loop-playlist:no/inf!?Loop playlist
  78. # toggle:{icon}:{prop} = cycle:{icon}:{prop}:no/yes!
  79. controls=menu,gap,subtitles,<has_many_audio>audio,<has_many_video>video,<has_many_edition>editions,<stream>stream-quality,gap,space,speed,space,shuffle,loop-playlist,loop-file,gap,prev,items,next,gap,fullscreen
  80. controls_size=32
  81. controls_margin=8
  82. controls_spacing=2
  83. controls_persistency=
  84. # Where to display volume controls: none, left, right
  85. volume=right
  86. volume_size=40
  87. volume_border=1
  88. volume_step=1
  89. volume_persistency=
  90. # Playback speed widget: mouse drag or wheel to change, click to reset
  91. speed_step=0.1
  92. speed_step_is_factor=no
  93. speed_persistency=
  94. # Controls all menus, such as context menu, subtitle loader/selector, etc
  95. menu_item_height=36
  96. menu_min_width=260
  97. menu_padding=4
  98. # Determines if `/` or `ctrl+f` is required to activate the search, or if typing
  99. # any text is sufficient.
  100. # When enabled, you can no longer toggle a menu off with the same key that opened it, if the key is a unicode character.
  101. menu_type_to_search=yes
  102. # Top bar with window controls and media title
  103. # Can be: never, no-border, always
  104. top_bar=no-border
  105. top_bar_size=40
  106. top_bar_controls=yes
  107. # Can be: `no` (hide), `yes` (inherit title from mpv.conf), or a custom template string
  108. top_bar_title=yes
  109. # Template string to enable alternative top bar title. If alt title matches main title,
  110. # it'll be hidden. Tip: use `${media-title}` for main, and `${filename}` for alt title.
  111. top_bar_alt_title=
  112. # Can be:
  113. # `below` => display alt title below the main one
  114. # `toggle` => toggle the top bar title text between main and alt by clicking
  115. # the top bar, or calling `toggle-title` binding
  116. top_bar_alt_title_place=below
  117. # Flash top bar when any of these file types is loaded. Available: audio,image,video
  118. top_bar_flash_on=video,audio
  119. top_bar_persistency=
  120. # Window border drawn in no-border mode
  121. window_border_size=1
  122. # If there's no playlist and file ends, load next file in the directory
  123. # Requires `keep-open=yes` in `mpv.conf`.
  124. autoload=no
  125. # What types to accept as next item when autoloading or requesting to play next file
  126. # Can be: video, audio, image, subtitle
  127. autoload_types=video,audio,image
  128. # Enable uosc's playlist/directory shuffle mode
  129. # This simply makes the next selected playlist or directory item be random, just
  130. # like any other player in the world. It also has an easily togglable control button.
  131. shuffle=no
  132. # Scale the interface by this factor
  133. scale=1
  134. # Scale in fullscreen
  135. scale_fullscreen=1.3
  136. # Adjust the text scaling to fit your font
  137. font_scale=1
  138. # Border of text and icons when drawn directly on top of video
  139. text_border=1.2
  140. # Border radius of buttons, menus, and all other rectangles
  141. border_radius=4
  142. # A comma delimited list of color overrides in RGB HEX format. Defaults:
  143. # foreground=ffffff,foreground_text=000000,background=000000,background_text=ffffff,curtain=111111,success=a5e075,error=ff616e
  144. color=
  145. # A comma delimited list of opacity overrides for various UI element backgrounds and shapes.
  146. # This does not affect any text, which is always rendered fully opaque. Defaults:
  147. # timeline=0.9,position=1,chapters=0.8,slider=0.9,slider_gauge=1,controls=0,speed=0.6,menu=1,submenu=0.4,border=1,title=1,tooltip=1,thumbnail=1,curtain=0.8,idle_indicator=0.8,audio_indicator=0.5,buffering_indicator=0.3,playlist_position=0.8
  148. opacity=
  149. # A comma delimited list of features to refine at a cost of some performance impact.
  150. # text_width - Use a more accurate text width measurement that measures each text string individually
  151. # instead of just measuring the width of known letters once and adding them up.
  152. # sorting - Use filename sorting that handles non-english languages better, especially asian ones.
  153. # At the moment, this is only available on windows, and has no effect on other platforms.
  154. refine=
  155. # Duration of animations in milliseconds
  156. animation_duration=100
  157. # Execute command for background clicks shorter than this number of milliseconds, 0 to disable
  158. # Execution always waits for `input-doubleclick-time` to filter out double-clicks
  159. click_threshold=0
  160. click_command=cycle pause; script-binding uosc/flash-pause-indicator
  161. # Flash duration in milliseconds used by `flash-{element}` commands
  162. flash_duration=1000
  163. # Distances in pixels below which elements are fully faded in/out
  164. proximity_in=40
  165. proximity_out=120
  166. # Use only bold font weight throughout the whole UI
  167. font_bold=no
  168. # One of `total`, `playtime-remaining` (scaled by the current speed), `time-remaining` (remaining length of file)
  169. destination_time=playtime-remaining
  170. # Display sub second fraction in timestamps up to this precision
  171. time_precision=0
  172. # Display stream's buffered time in timeline if it's lower than this amount of seconds, 0 to disable
  173. buffered_time_threshold=60
  174. # Hide UI when mpv autohides the cursor. Timing is controlled by `cursor-autohide` in `mpv.conf` (in milliseconds).
  175. autohide=no
  176. # Can be: flash, static, manual (controlled by flash-pause-indicator and decide-pause-indicator commands)
  177. pause_indicator=flash
  178. # Sizes to list in stream quality menu
  179. stream_quality_options=4320,2160,1440,1080,720,480,360,240,144
  180. # Types to identify media files
  181. video_types=3g2,3gp,asf,avi,f4v,flv,h264,h265,m2ts,m4v,mkv,mov,mp4,mp4v,mpeg,mpg,ogm,ogv,rm,rmvb,ts,vob,webm,wmv,y4m
  182. audio_types=aac,ac3,aiff,ape,au,cue,dsf,dts,flac,m4a,mid,midi,mka,mp3,mp4a,oga,ogg,opus,spx,tak,tta,wav,weba,wma,wv
  183. image_types=apng,avif,bmp,gif,j2k,jp2,jfif,jpeg,jpg,jxl,mj2,png,svg,tga,tif,tiff,webp
  184. subtitle_types=aqt,ass,gsub,idx,jss,lrc,mks,pgs,pjs,psb,rt,sbv,slt,smi,sub,sup,srt,ssa,ssf,ttxt,txt,usf,vt,vtt
  185. # Default open-file menu directory
  186. default_directory=~/
  187. # List hidden files when reading directories. Due to environment limitations, this currently only hides
  188. # files starting with a dot. Doesn't hide hidden files on windows (we have no way to tell they're hidden).
  189. show_hidden_files=no
  190. # Move files to trash (recycle bin) when deleting files. Dependencies:
  191. # - Linux: `sudo apt install trash-cli`
  192. # - MacOS: `brew install trash`
  193. use_trash=no
  194. # Adjusted osd margins based on the visibility of UI elements
  195. adjust_osd_margins=yes
  196. # Adds chapter range indicators to some common chapter types.
  197. # Additionally to displaying the start of the chapter as a diamond icon on top of the timeline,
  198. # the portion of the timeline of that chapter range is also colored based on the config below.
  199. #
  200. # The syntax is a comma-delimited list of `{type}:{color}` pairs, where:
  201. # `{type}` => range type. Currently supported ones are:
  202. # - `openings`, `endings` => anime openings/endings
  203. # - `intros`, `outros` => video intros/outros
  204. # - `ads` => segments created by sponsor-block software like https://github.com/po5/mpv_sponsorblock
  205. # `{color}` => an RGB(A) HEX color code (`rrggbb`, or `rrggbbaa`)
  206. #
  207. # To exclude marking any of the range types, simply remove them from the list.
  208. chapter_ranges=openings:30abf964,endings:30abf964,ads:c54e4e80
  209. # Add alternative lua patterns to identify beginnings of simple chapter ranges (except for `ads`)
  210. # Syntax: `{type}:{pattern}[,{patternN}][;{type}:{pattern}[,{patternN}]]`
  211. chapter_range_patterns=openings:オープニング;endings:エンディング
  212. # Localization language priority from highest to lowest.
  213. # Also controls what languages are fetched by `download-subtitles` menu.
  214. # Built in languages can be found in `uosc/intl`.
  215. # `slang` is a keyword to inherit values from `--slang` mpv config.
  216. # Supports paths to custom json files: `languages=~~/custom.json,slang,en`
  217. languages=slang,en
  218. # A comma separated list of element IDs to disable. Available IDs:
  219. # window_border, top_bar, timeline, controls, volume,
  220. # idle_indicator, audio_indicator, buffering_indicator, pause_indicator
  221. disable_elements=