uosc.conf (9878B)
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_line_width_fullscreen=3 6 # Scale the width of the line when minimized (timeline_size_min) 7 timeline_line_width_minimized_scale=10 8 # Timeline size when minimized, 0 will hide it completely 9 timeline_size_min=2 10 # Timeline size when fully expanded, in pixels, 0 to disable 11 timeline_size_max=40 12 # Same as ^ but when in fullscreen 13 timeline_size_min_fullscreen=0 14 timeline_size_max_fullscreen=60 15 # Same thing as calling toggle-progress command once on startup 16 timeline_start_hidden=no 17 # Comma separated states when timeline should always be visible. available: paused, audio, image, video, idle 18 timeline_persistency=paused 19 # Timeline opacity 20 timeline_opacity=1.0 21 # Top border of background color to help visually separate timeline from video 22 timeline_border=1 23 # When scrolling above timeline, wheel will seek by this amount of seconds 24 timeline_step=5 25 # Opacity of chapter indicators in timeline, 0 to disable 26 timeline_chapters_opacity=1.0 27 28 # A comma delimited list of items to construct the controls bar above the timeline. Set to `never` to disable. 29 # Parameter spec: enclosed in `{}` means value, enclosed in `[]` means optional 30 # Full item syntax: `[<[!]{disposition1}[,[!]{dispositionN}]>]{element}[:{paramN}][#{badge}[>{limit}]][?{tooltip}]` 31 # Common properties: 32 # `{icon}` - parameter used to specify an icon name (example: `face`) 33 # - you can pick one here: https://fonts.google.com/icons?selected=Material+Icons&icon.style=Rounded 34 # `{element}`s and their parameters: 35 # `{usoc_command}` - preconfigured shorthands for uosc commands that make sense to have as buttons: 36 # - `menu`, `subtitles`, `audio`, `video`, `playlist`, `chapters`, `editions`, `stream-quality`, 37 # `open-file`, `items`, `next`, `prev`, `first`, `last`, `audio-device` 38 # `fullscreen` - toggle fullscreen 39 # `loop-playlist` - button to toggle playlist looping 40 # `loop-file` - button to toggle current file looping 41 # `shuffle` - toggle playlist shuffle 42 # `speed[:{scale}]` - display speed slider, [{scale}] - factor of controls_size, default: 1.3 43 # `command:{icon}:{command}` - button that executes a {command} when pressed 44 # `toggle:{icon}:{prop}` - button that toggles mpv property 45 # `cycle:{default_icon}:{prop}:{value1}[={icon1}][!]/{valueN}[={iconN}][!]` 46 # - button that cycles mpv property between values, each optionally having different icon and active flag 47 # - presence of `!` at the end will style the button as active 48 # `gap[:{scale}]` - display an empty gap, {scale} - factor of controls_size, default: 0.3 49 # `space` - fills all available space between previous and next item, useful to align items to the right 50 # - multiple spaces divide the available space among themselves, which can be used for centering 51 # Item visibility control: 52 # `<[!]{disposition1}[,[!]{dispositionN}]>` - optional prefix to control element's visibility 53 # - `{disposition}` can be one of: 54 # - `idle` - true if mpv is in idle mode (no file loaded) 55 # - `image` - true if current file is a single image 56 # - `audio` - true for audio only files 57 # - `video` - true for files with a video track 58 # - `has_many_video` - true for files with more than one video track 59 # - `has_audio` - true for files with an audio track 60 # - `has_many_audio` - true for files with more than one audio track 61 # - `has_sub` - true for files with an subtitle track 62 # - `has_many_sub` - true for files with more than one subtitle track 63 # - `has_many_edition` - true for files with more than one edition 64 # - `has_chapter` - true for files with chapter list 65 # - `stream` - true if current file is read from a stream 66 # - `has_playlist` - true if current playlist has 2 or more items in it 67 # - prefix with `!` to negate the required disposition 68 # Examples: 69 # - `<stream>stream-quality` - show stream quality button only for streams 70 # - `<has_audio,!audio>audio` - show audio tracks button for all files that have 71 # an audio track, but are not exclusively audio only files 72 # Place `#{badge}[>{limit}]` after the element params to give it a badge. Available badges: 73 # `sub`, `audio`, `video` - track type counters 74 # `{mpv_prop}` - any mpv prop that makes sense to you: https://mpv.io/manual/master/#property-list 75 # - if prop value is an array it'll display its size 76 # `>{limit}` will display the badge only if it's numerical value is above this threshold. 77 # Example: `#audio>1` 78 # Place `?{tooltip}` after the element config to give it a tooltip. 79 # Example: `<stream>stream-quality?Stream quality` 80 # Example implementations of some of the available shorthands: 81 # menu = command:menu:script-binding uosc/menu-blurred?Menu 82 # subtitles = command:subtitles:script-binding uosc/subtitles#sub?Subtitles 83 # fullscreen = cycle:crop_free:fullscreen:no/yes=fullscreen_exit!?Fullscreen 84 # loop-playlist = cycle:repeat:loop-playlist:no/inf!?Loop playlist 85 # toggle:{icon}:{prop} = cycle:{icon}:{prop}:no/yes! 86 controls=speed,space,<has_chapter>chapters,subtitles,<has_many_audio>audio,<has_many_video>video,<has_many_edition>editions,<stream>stream-quality,gap,<has_playlist>shuffle,<has_playlist>loop-playlist,loop-file,<has_playlist>gap,<has_playlist>prev,<has_playlist>items,<has_playlist>next 87 controls_size=32 88 controls_size_fullscreen=40 89 controls_margin=8 90 controls_spacing=2 91 controls_persistency=paused 92 93 # Where to display volume controls: none, left, right 94 volume=right 95 volume_size=40 96 volume_size_fullscreen=52 97 volume_opacity=1.0 98 volume_border=1 99 volume_step=1 100 volume_persistency=paused 101 102 # Playback speed widget: mouse drag or wheel to change, click to reset 103 speed_opacity=1.0 104 speed_step=0.1 105 speed_step_is_factor=no 106 speed_persistency=paused 107 108 # Controls all menus, such as context menu, subtitle loader/selector, etc 109 menu_item_height=36 110 menu_item_height_fullscreen=50 111 menu_min_width=260 112 menu_min_width_fullscreen=360 113 menu_opacity=1.0 114 menu_parent_opacity=1.0 115 116 # Top bar with window controls and media title 117 # Can be: never, no-border, always 118 top_bar=no-border 119 top_bar_size=40 120 top_bar_size_fullscreen=46 121 top_bar_controls=no 122 top_bar_title=no 123 top_bar_title_opacity=1.0 124 top_bar_persistency=never 125 126 # Window border drawn in no-border mode 127 window_border_size=1 128 window_border_opacity=1.0 129 130 # If there's no playlist and file ends, load next file in the directory 131 # Requires `keep-open=yes` in `mpv.conf`. 132 autoload=no 133 # Enable playlist/directory navigation shuffling 134 # This is required to implement shuffling that works as expected, including 135 # directory navigation, since mpv's built in `shuffle` option is essentialy unusable. 136 shuffle=no 137 138 # Scale the interface by this factor 139 ui_scale=1 140 # Adjust the text scaling to fit your font 141 font_scale=1 142 # Border of text and icons when drawn directly on top of video 143 text_border=1.2 144 # Execute command for background clicks shorter than this number of milliseconds, 0 to disable 145 click_threshold=0 146 click_command=cycle pause; script-binding uosc/flash-pause-indicator 147 # Flash duration in milliseconds used by `flash-{element}` commands 148 flash_duration=1000 149 # Distances in pixels below which elements are fully faded in/out 150 proximity_in=99999 151 proximity_out=99999 152 # RGB HEX color codes 153 foreground=ffffff 154 foreground_text=000000 155 background=050a10 156 background_text=ffffff 157 # Use only bold font weight throughout the whole UI 158 font_bold=no 159 # Show total time instead of time remaining 160 total_time=no 161 # Display sub second fraction in timestamps up to this precision 162 time_precision=0 163 # Display stream's buffered time in timeline if it's lower than this amount of seconds, 0 to disable 164 buffered_time_threshold=60 165 # Hide UI when mpv autohides the cursor 166 autohide=yes 167 # Can be: none, flash, static, manual (controlled by flash-pause-indicator and decide-pause-indicator commands) 168 pause_indicator=flash 169 # Screen dim when stuff like menu is open, 0 to disable 170 curtain_opacity=0.4 171 # Sizes to list in stream quality menu 172 stream_quality_options=4320,2160,1440,1080,720,480,360,240,144 173 # File types to look for when navigating media files 174 media_types=3g2,3gp,aac,aiff,ape,apng,asf,au,avi,avif,bmp,dsf,f4v,flac,flv,gif,h264,h265,j2k,jp2,jfif,jpeg,jpg,jxl,m2ts,m4a,m4v,mid,midi,mj2,mka,mkv,mov,mp3,mp4,mp4a,mp4v,mpeg,mpg,oga,ogg,ogm,ogv,opus,png,rm,rmvb,spx,svg,tak,tga,tta,tif,tiff,ts,vob,wav,weba,webm,webp,wma,wmv,wv,y4m 175 # File types to look for when loading external subtitles 176 subtitle_types=aqt,ass,gsub,idx,jss,lrc,mks,pgs,pjs,psb,rt,slt,smi,sub,sup,srt,ssa,ssf,ttxt,txt,usf,vt,vtt 177 # Used to approximate text width 178 # If you are using some wide font and see a lot of right side clipping in menus, 179 # try bumping this up. 180 font_height_to_letter_width_ratio=0.5 181 # Default open-file menu directory 182 default_directory=~/ 183 184 # Convers some common chapter types into chapter range indicators. 185 # Instead of displaying the start of the chapter as a diamond icon on top of the 186 # timeline, the portion of the timeline owned by that chapter is colored based 187 # on the config below. 188 # 189 # The syntax is a comma delimited list of `{type}:{color}` pairs, where. 190 # `{type}` - range type. Currently suported ones are: 191 # - `openings`, `endings` - anime openings/endings 192 # - `intros`, `outros` - video intros/outros 193 # - `ads` - sponsor segments created by script: https://github.com/po5/mpv_sponsorblock 194 # `{color}` - an RGB(A) HEX color code (`rrggbb`, or `rrggbbaa`) 195 # 196 # To not convert any of the range types, simply removed it from the list. 197 chapter_ranges=openings:30abf964,endings:30abf964,ads:c54e4e80 198 # Add alternative lua patterns to identify begining's of simple chapter ranges (all but `ads`) 199 # Syntax: `{type}:{pattern}[,{patternN}][;{type}:{pattern}[,{patternN}]]` 200 chapter_range_patterns=openings:オープニング;endings:エンディング