diff options
| author | Anton Bobov <anton@bobov.name> | 2024-11-22 21:00:29 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2024-11-22 21:00:29 +0500 |
| commit | 3239918a1ed05be84943a36649b6df49fb1b67ea (patch) | |
| tree | 435319506c2f033946d21959457edf910ba6bf02 /files/.config | |
| parent | 2491186b8b8d6fe902d92059b69fddeeee920e0a (diff) | |
mpv: Update uosc
Diffstat (limited to 'files/.config')
| -rw-r--r-- | files/.config/mpv/script-opts/uosc.conf | 50 | ||||
| m--------- | files/.config/mpv/uosc | 0 |
2 files changed, 28 insertions, 22 deletions
diff --git a/files/.config/mpv/script-opts/uosc.conf b/files/.config/mpv/script-opts/uosc.conf index 787d8b4..4f7ab3e 100644 --- a/files/.config/mpv/script-opts/uosc.conf +++ b/files/.config/mpv/script-opts/uosc.conf @@ -9,7 +9,8 @@ timeline_size=40 timeline_persistency=paused # Top border of background color to help visually separate timeline from video timeline_border=1 -# When scrolling above timeline, wheel will seek by this amount of seconds +# When scrolling above timeline, wheel will seek by this amount of seconds. +# Default uses fast seeking. Add `!` suffix to enable exact seeks. Example: `5!` timeline_step=5 # Render cache indicators for streaming content timeline_cache=yes @@ -31,18 +32,19 @@ progress_line_width=20 # `play-pause`, `menu`, `subtitles`, `audio`, `video`, `playlist`, # `chapters`, `editions`, `stream-quality`, `open-file`, `items`, # `next`, `prev`, `first`, `last`, `audio-device`, `fullscreen`, -# `loop-playlist`, `loop-file`, `shuffle` +# `loop-playlist`, `loop-file`, `shuffle`, `autoload` # `speed[:{scale}]` - display speed slider, [{scale}] - factor of controls_size, default: 1.3 # `command:{icon}:{command}` - button that executes a {command} when pressed -# `toggle:{icon}:{prop}[@{owner}]` - button that toggles mpv property +# `toggle:{icon}:{prop}[@{owner}]` - button that toggles mpv property. shorthand for yes/no cycle below # `cycle:{default_icon}:{prop}[@{owner}]:{value1}[={icon1}][!]/{valueN}[={iconN}][!]` # - button that cycles mpv property between values, each optionally having different icon and active flag # - presence of `!` at the end will style the button as active -# - `{owner}` is the name of a script that manages this property if any +# - `{owner}` is the name of a script that manages this property if any. Set to `uosc` to tap into uosc options. # `gap[:{scale}]` - display an empty gap # {scale} - factor of controls_size, default: 0.3 # `space` - fills all available space between previous and next item, useful to align items to the right # - multiple spaces divide the available space among themselves, which can be used for centering +# `button:{name}` - button whose state, look, and click action are managed by external script # Item visibility control: # `<[!]{disposition1}[,[!]{dispositionN}]>` - optional prefix to control element's visibility # - `{disposition}` can be one of: @@ -109,6 +111,7 @@ menu_type_to_search=yes # Can be: never, no-border, always top_bar=no-border top_bar_size=40 +# Can be: `no` (hide), left or right top_bar_controls=no # Can be: `no` (hide), `yes` (inherit title from mpv.conf), or a custom template string top_bar_title=yes @@ -120,19 +123,17 @@ top_bar_alt_title= # `toggle` => toggle the top bar title text between main and alt by clicking # the top bar, or calling `toggle-title` binding top_bar_alt_title_place=below -# Flash top bar when any of these file types is loaded. Available: audio,image,video +# Flash top bar when any of these file types is loaded. Available: audio,video,image,chapter top_bar_flash_on=video,audio top_bar_persistency= # Window border drawn in no-border mode window_border_size=1 -# If there's no playlist and file ends, load next file in the directory -# Requires `keep-open=yes` in `mpv.conf`. +# If there's no playlist and file ends, load next file in directory +# Uses `load_types` config below to determine what type of file to load next. +# When enabled, usoc will set mpv config `keep-open` to `yes`, and `keep-open-pause` to `no`. autoload=yes -# What types to accept as next item when autoloading or requesting to play next file -# Can be: video, audio, image, subtitle -autoload_types=video,audio,image # Enable uosc's playlist/directory shuffle mode # This simply makes the next selected playlist or directory item be random, just # like any other player in the world. It also has an easily togglable control button. @@ -148,19 +149,19 @@ font_scale=1.5 text_border=1.2 # Border radius of buttons, menus, and all other rectangles border_radius=4 -# A comma delimited list of color overrides in RGB HEX format. -# Defaults: foreground=ffffff,foreground_text=000000,background=000000,background_text=ffffff,curtain=111111, -# success=a5e075,error=ff616e +# A comma delimited list of color overrides in RGB HEX format. Defaults: +# foreground=ffffff,foreground_text=000000,background=000000,background_text=ffffff,curtain=111111,success=a5e075,error=ff616e color= # A comma delimited list of opacity overrides for various UI element backgrounds and shapes. -# This does not affect any text, which is always rendered fully opaque. -# Defaults: timeline=0.9,position=1,chapters=0.8,slider=0.9,slider_gauge=1,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 +# This does not affect any text, which is always rendered fully opaque. Defaults: +# 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 opacity= -# Use a faster estimation method instead of accurate measurement -# setting this to `no` might have a noticeable impact on performance, especially in large menus. -text_width_estimation=yes +# A comma delimited list of features to refine at a cost of some performance impact. +# text_width - Use a more accurate text width measurement that measures each text string individually +# instead of just measuring the width of known letters once and adding them up. +# sorting - Use filename sorting that handles non-english languages better, especially asian ones. +# At the moment, this is only available on windows, and has no effect on other platforms. +refine= # Duration of animations in milliseconds animation_duration=100 # Execute command for background clicks shorter than this number of milliseconds, 0 to disable @@ -180,7 +181,7 @@ destination_time=playtime-remaining time_precision=0 # Display stream's buffered time in timeline if it's lower than this amount of seconds, 0 to disable buffered_time_threshold=60 -# Hide UI when mpv autohides the cursor +# Hide UI when mpv autohides the cursor. Timing is controlled by `cursor-autohide` in `mpv.conf` (in milliseconds). autohide=no # Can be: flash, static, manual (controlled by flash-pause-indicator and decide-pause-indicator commands) pause_indicator=flash @@ -191,7 +192,11 @@ video_types=3g2,3gp,asf,avi,f4v,flv,h264,h265,m2ts,m4v,mkv,mov,mp4,mp4v,mpeg,mpg 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 image_types=apng,avif,bmp,gif,j2k,jp2,jfif,jpeg,jpg,jxl,mj2,png,svg,tga,tif,tiff,webp 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 -# Default open-file menu directory +playlist_types=m3u,m3u8,pls,url,cue +# Type pools used by file navigation and `autoload` to determine what type of file to load next +# Available: video,audio,image,playlist,same. `same` means the same type pool (not just extension) as currently open file. +load_types=video,audio +# Default open-file menu directory. Use `{drives}` to open drives menu on windows (defaults to `/` on unix). default_directory=~/Videos # List hidden files when reading directories. Due to environment limitations, this currently only hides # files starting with a dot. Doesn't hide hidden files on windows (we have no way to tell they're hidden). @@ -221,6 +226,7 @@ chapter_ranges=openings:30abf964,endings:30abf964,ads:c54e4e80 chapter_range_patterns=openings:オープニング;endings:エンディング # Localization language priority from highest to lowest. +# Also controls what languages are fetched by `download-subtitles` menu. # Built in languages can be found in `uosc/intl`. # `slang` is a keyword to inherit values from `--slang` mpv config. # Supports paths to custom json files: `languages=~~/custom.json,slang,en` diff --git a/files/.config/mpv/uosc b/files/.config/mpv/uosc -Subproject 8346db433f12608495dc9cd1bd27129990810e0 +Subproject 3df0af21cee3dbdca645ea425a0209bdac6076d |
