Migrate changelog and configuration to releases
This commit is contained in:
457
CHANGELOG.md
457
CHANGELOG.md
@@ -1,457 +0,0 @@
|
||||
## 2.17.0 - 2022-Apr-30
|
||||
|
||||
Added
|
||||
- `default_directory` option - if there is no file open, this is the open-file menu directory that will be used. `~/` by default.
|
||||
|
||||
## 2.16.0 - 2022-Mar-21
|
||||
|
||||
Added:
|
||||
- `flash-top-bar` command, useful when navigating between files.
|
||||
|
||||
Changed:
|
||||
- Apart of `#!`, you can also use `#menu:` to declare menu items. This adds compatibility with mpv.net.
|
||||
|
||||
Fixed:
|
||||
- `delete-file-next` command now correctly uses playlist to decide next item to play.
|
||||
|
||||
## 2.15.1 - 2022-Feb-12
|
||||
|
||||
Fixed:
|
||||
- On linux, top bar was showing every time the app started even when cursor was nowhere near it.
|
||||
|
||||
## 2.15.0 - 2022-Jan-11
|
||||
|
||||
Added:
|
||||
- Menu button widget. `menu_button` config can be set to `bottom-bar` or `center`. Default is `never`.
|
||||
|
||||
## 2.14.0 - 2021-Sep-13
|
||||
|
||||
Added:
|
||||
- `top_bar` option to specify when you wan to see window controls (title and min/max/close buttons). Possible values: `never`, `no-border`, `always`.
|
||||
|
||||
## 2.13.2 - 2021-Apr-26
|
||||
|
||||
Fixed:
|
||||
- Crash when ab loop is created on videos with no chapters.
|
||||
|
||||
## 2.13.1 - 2021-Jan-19
|
||||
|
||||
Changed:
|
||||
- The file deletion in `delete-file-ACTION` (`delete-file-next`, `delete-file-quit`) is now optional, meaning if file is not a file (watching a stream), uosc will just execute the action. Previously, nothing would happen.
|
||||
|
||||
## 2.13.0 - 2020-Dec-16
|
||||
|
||||
Added:
|
||||
- `curtain_opacity=0.5` option for controlling the background fadeout when stuff like menu is open. Set to `0` to disable.
|
||||
- Holding `shift` while activating items in menu now activates the item without closing the menu.
|
||||
|
||||
Changed:
|
||||
- Menu now concatenates items with the same command only within the same menu group.
|
||||
|
||||
## 2.12.0 - 2020-Dec-03
|
||||
|
||||
Added:
|
||||
- Persistency options (`timeline_persistency`, `volume_persistency`, `speed_persistency`, `top_bar_persistency`) to persist specific UI elements in some states. Currently available states:
|
||||
- `paused` - playback is paused
|
||||
- `audio` - audio file is open
|
||||
|
||||
Example:
|
||||
```
|
||||
timeline_persistency=pause,audio
|
||||
```
|
||||
Will keep timeline visible if playback is paused, or always when audio file is open.
|
||||
- `pause_indicator=manual` option, which enables usage of new commands:
|
||||
- `flash-pause-indicator` - flash pause indicator
|
||||
- `decide-pause-indicator` - decide static indicator (when called will either remove the indicator when playing, or add display a static indicator when paused)
|
||||
|
||||
Use case: mpv handles frame stepping forward by briefly resuming the video, which causes automatic pause indicator to flash, and none likes that when they are trying to compare frames. The solution is to enable manual pause indicator and use these as a secondary command to all bindings you wish would display an indicator. Example:
|
||||
```
|
||||
space cycle pause; script-binding uosc/flash-pause-indicator
|
||||
```
|
||||
|
||||
Fixed:
|
||||
- Video duration length changes (streaming video) were not triggering UI updates.
|
||||
- Updating playlist menu while open was buggy.
|
||||
- Speed control was only looking at timeline proximity, so sometimes it was still faded out even when cursor was near/above it.
|
||||
|
||||
## 2.11.1 - 2020-Nov-09
|
||||
|
||||
Fixed:
|
||||
- UI not re-rendering on some property changes when paused.
|
||||
|
||||
## 2.11.0 - 2020-Nov-07
|
||||
|
||||
Added:
|
||||
- Stream quality menu. Trigger it with `script-binding uosc/stream-quality` command. This is just a quick change of mpv `ytdl-format` option to `bestvideo[height<=?{height}]+bestaudio/best[height<=?{height}]` and reload+resume. There is no fetching of available formats going on. You can change which formats appear in the menu by changing the stream quality options option, which is `stream_quality_options=4320,2160,1440,1080,720,480,360,240,144` by default.
|
||||
- Window border rendering in no-border & no-fullscreen mode to help separate window from background. `window_border_size=1` by default, set to `0` to disable. You can also change the opacity, which is `window_border_opacity=0.8` by default. Uses `color_background`.
|
||||
|
||||
Changed:
|
||||
- Directory navigation now preselects first file.
|
||||
|
||||
Fixed:
|
||||
- Timeline now updates when paused and duration changes (live streams).
|
||||
|
||||
## 2.10.2 - 2020-Oct-19
|
||||
|
||||
Changed:
|
||||
- `flash_duration` default value bumped from `400` to `1000` milliseconds.
|
||||
|
||||
Fixed:
|
||||
- Switching between fullscreen and windowed mode not working when windowed dimensions matched fullscreen dimensions.
|
||||
- Elements not updating their cursor proximity when switching to fullscreen.
|
||||
|
||||
## 2.10.1 - 2020-Jun-20
|
||||
|
||||
Fixed:
|
||||
- Crash when video had no duration (viewing images).
|
||||
- Support for new sponsor block categories.
|
||||
|
||||
## 2.10.0 - 2020-May-17
|
||||
|
||||
Element flashing on external changes was a bit too magical. Especially timeline flashing had to implement several filters to not flash on frame steps, or when video loops, and you still couldn't control which seeks were flashing the timeline and which not, so this updated replaces magical flashing option with explicit flashing commands.
|
||||
|
||||
New:
|
||||
- Commands for flashing elements:
|
||||
- `flash-timeline`
|
||||
- `flash-volume`
|
||||
- `flash-speed`
|
||||
|
||||
You can use them in your keybindings like so:
|
||||
|
||||
```
|
||||
right seek 5
|
||||
left seek -5
|
||||
shift+right seek 30; script-binding uosc/flash-timeline
|
||||
shift+left seek -30; script-binding uosc/flash-timeline
|
||||
m cycle mute; script-binding uosc/flash-volume
|
||||
up add volume 10; script-binding uosc/flash-volume
|
||||
down add volume -10; script-binding uosc/flash-volume
|
||||
[ add speed -0.25; script-binding uosc/flash-speed
|
||||
] add speed 0.25; script-binding uosc/flash-speed
|
||||
\ set speed 1; script-binding uosc/flash-speed
|
||||
```
|
||||
|
||||
Removed:
|
||||
- Since flashing commands above do the job better, options to flash elements automatically have been removed:
|
||||
- `timeline_flash=400`
|
||||
- `volume_flash=400`
|
||||
- `speed_flash=400`
|
||||
|
||||
## 2.9.0 - 2020-May-11
|
||||
|
||||
Changed:
|
||||
- Window controls and title bar (displayed only in no border mode) have been merged into a more configurable `top_bar` entity.
|
||||
|
||||
These options are now gone:
|
||||
- `window_controls=yes`
|
||||
- `title=no`
|
||||
|
||||
Replaced with:
|
||||
- `top_bar_size=40`
|
||||
- `top_bar_size_fullscreen=46`
|
||||
- `top_bar_controls=yes`
|
||||
- `top_bar_title=yes`
|
||||
- Menu navigation with **wasd** and **hjkl** keys is now off by default, and can be enabled with `menu_wasd_navigation=yes` and `menu_hjkl_navigation=yes`.
|
||||
- Remaining time now prefixed with a minus sign.
|
||||
|
||||
Fixed:
|
||||
- Volume number bugging out on floating point values.
|
||||
|
||||
## 2.8.2 - 2020-May-06
|
||||
|
||||
Changed:
|
||||
- Tweaked speed widget tiny bit. Default size values changed so if you had them modified they now have to be bigger to achieve the same size as before.
|
||||
|
||||
Fixed:
|
||||
- Speed widget sometimes resetting speed to 1x on fast drags left.
|
||||
|
||||
## 2.8.1 - 2020-May-04
|
||||
|
||||
Fixed:
|
||||
- Chapters not clearing when new file with no chapters is loaded.
|
||||
|
||||
## 2.8.0 - 2020-May-01
|
||||
|
||||
New:
|
||||
- `{element}_font_scale` and `font_bold` options to tweak font sizes and weight.
|
||||
- `window_controls` option to disable window controls even in no-border mode.
|
||||
|
||||
Changed:
|
||||
- All commands that open menus now toggle the menu instead of always reopening them.
|
||||
|
||||
## 2.7.3 - 2020-Apr-30
|
||||
|
||||
Fixed:
|
||||
- Crash when `volume` set to `none`.
|
||||
- Element flashing overwriting proximity state.
|
||||
- Fix mouse leave fadeout crashing uosc when volume element is disabled.
|
||||
- Fix autohide hiding elements until mouse leaves and enters the window.
|
||||
- Fix icons crashing uosc when volume element is disabled.
|
||||
|
||||
## 2.7.0 - 2020-Apr-29
|
||||
|
||||
New:
|
||||
- Added context aware navigation commands:
|
||||
- `next` - open next item in playlist, or file in current directory when there is no playlist
|
||||
- `prev` - open previous item in playlist, or file in current directory when there is no playlist
|
||||
- `first` - open first item in playlist, or file in current directory when there is no playlist
|
||||
- `last` - open next item in playlist, or file current directory when there is no playlist
|
||||
|
||||
Previously playlist and file navigation required separate bindings, now you can merge them together.
|
||||
|
||||
Changed:
|
||||
- Renamed commands (sorry :x):
|
||||
- `context-menu` -> `menu`
|
||||
- `select-subtitles` -> `subtitles`
|
||||
- `select-audio` -> `audio`
|
||||
- `select-video` -> `video`
|
||||
- `navigate-playlist` -> `playlist`
|
||||
- `navigate-chapters` -> `chapters`
|
||||
- `navigate-directory` -> `open-file`
|
||||
- `open-file` command now starts in user directory when current file path not available.
|
||||
- All controls now respond to their own proximity instead of fading in whenever cursor is around any of them. This used to be the original behavior, than I changed it to shared proximity thinking it feels better, but after a lot of use I decided to revert it back.
|
||||
- All floating texts now use border instead of shadow to make them more readable above light backgrounds. Shadows looked better, but usability won.
|
||||
|
||||
## 2.6.0 - 2020-Apr-28
|
||||
|
||||
New:
|
||||
- Added `open-config-directory` command.
|
||||
|
||||
Fixed:
|
||||
- Volume bar extending past its borders when volume was higher than `volume-max` config.
|
||||
|
||||
## 2.5.0 - 2020-Apr-24
|
||||
|
||||
New:
|
||||
- Added `timeline_start_hidden` options. Function the same as calling `toggle-progress` command once on startup.
|
||||
|
||||
Changed:
|
||||
- Command `flash-timeline` renamed to `peek-timeline`.
|
||||
- Some cursor interaction tweaks.
|
||||
|
||||
## 2.4.2 - 2020-Apr-23
|
||||
|
||||
Fixed:
|
||||
- `delete-file-next` not starting next file on Linux.
|
||||
|
||||
## 2.4.1 - 2020-Apr-22
|
||||
|
||||
Changed:
|
||||
- Tweaked pause indicator styles.
|
||||
|
||||
Fixed:
|
||||
- **!IMPORTANT!** File navigation not working on linux. I copy & pasted someone elses lua string splitting implementation from stack overflow and it was wrong. What a surprise.
|
||||
|
||||
## 2.4.0 - 2020-Apr-21
|
||||
|
||||
New:
|
||||
- Pause indicator received a `flash` mode, which is the default now. You can disable it completely with `pause_indicator=none`.
|
||||
|
||||
Changed:
|
||||
- Window title no longer fades in the UI when enabled. I found that 3 sides of the window having proximity triggers was a bit too much, especially on small windows. Felt a bit like a game of Whac-A-Mole. If you want to see the title, hover window controls, volume, or timeline.
|
||||
|
||||
Fixed:
|
||||
- Chapter indicators not updating after initial file load.
|
||||
- Volume slider nudge rendering issue when `volume-max=100`.
|
||||
- Sorting too inaccurate since lua's `<>` operators are weird.
|
||||
- Playlist and directory navigators now respond to and update on file delete commands.
|
||||
|
||||
## 2.3.0 - 2020-Apr-20
|
||||
|
||||
New:
|
||||
- Playback speed control widget. Off by default, enable with `speed=yes`. See docs for more options.
|
||||
- Pause indicator. Off by default, enable with `pause_indicator=yes`.
|
||||
|
||||
Changed:
|
||||
- UI flashing refactored:
|
||||
- `timeline_flash_duration=400` changed to `timeline_flash=yes`
|
||||
- `volume_flash_duration=400` changed to `volume_flash=yes`
|
||||
- Added `speed_flash=yes`
|
||||
- Duration now controlled with unified `flash_duration=400` option.
|
||||
- All menus where it makes sense now update their active item as it changes. For example, if playlist navigation is open, the active item will update if you switch to a different playlist item with a hotkey. Same for directory and chapter navigation.
|
||||
- Improved menu navigation, which now differentiates between selected and active item.
|
||||
- File sorting now more closely (but not exactly) matches sorting of current OS.
|
||||
- You can now use mouse wheel when mouse is hovering over timeline, volume, or speed controls to step by their predefined `{element}_step` option values.
|
||||
|
||||
Fixed:
|
||||
- Chapter ranges `{eof}` was resolving to `0` in some files, causing inaccurate ranges.
|
||||
- Glitchy menus when closing/reopening too fast.
|
||||
- Glitchy elements when flashing as mouse is moving near them.
|
||||
|
||||
## 2.2.0 - 2020-Apr-15
|
||||
|
||||
New:
|
||||
- Timeline now displays cached ranges for streaming videos. You can turn it off or tweak styles with `timeline_cached_ranges` option.
|
||||
|
||||
Changed:
|
||||
- Volume bar now also flashes on mute changes.
|
||||
|
||||
Fixed:
|
||||
- Escape button not closing open menus.
|
||||
|
||||
## 2.1.1 - 2020-Apr-13
|
||||
|
||||
Changed:
|
||||
- Tweaked vertical alignment, scroll indicators, and button handling, for tall menus.
|
||||
|
||||
## 2.1.0 - 2020-Apr-13
|
||||
|
||||
New:
|
||||
- Chapter navigation under `uosc/navigate-chapters` command. Bind with:
|
||||
```
|
||||
key script-binding uosc/navigate-chapters
|
||||
```
|
||||
|
||||
Changed:
|
||||
- Use `media-title` instead of `filename` for window title.
|
||||
- Updated default `chapter_ranges` to be more robust.
|
||||
|
||||
Fixed:
|
||||
- Crash on opening a video from saved state.
|
||||
- `context-menu` command not correctly toggling menus but always reopening them.
|
||||
- Keyboard navigation not working properly in some menus.
|
||||
- Timeline will no longer flash on tiny seeks such as `frame-step`.
|
||||
|
||||
# 2.0.0 - 2020-Apr-12
|
||||
|
||||
Substantial rewrite with tons of new features and improvements! A lot of options have changed or disappeared, you need to reconfigure your config file.
|
||||
|
||||
Changed:
|
||||
- **Progressbar** and **Seekbar** have been merged into one element **Timeline**.
|
||||
Originally I wanted them to be separate because making them the same thing means I have to slide it in instead of fading it in, which I felt would make it a movable target and harder to use. But after actually testing it I've realized that is not the case at all. This change simplifies the code, options, and I'd even say it's even nicer to use than before.
|
||||
|
||||
New:
|
||||
- Volume slider.
|
||||
- Implemented menu rendering, which in turn allowed me to add a lot of new features on top of it:
|
||||
- Context menu - customizable context menu with nesting support which you can fill with whatever you want! Read the documentation to find out how.
|
||||
- External subtitles loader.
|
||||
- Subtitle/audio/video track selector.
|
||||
- Playlist navigation.
|
||||
- Directory navigation.
|
||||
- A lot of new useful commands added. Rad the documentation to see exactly what they do. Here is a quick list of all currently available commands to bind your keys to:
|
||||
- `script-binding uosc/flash-timeline`
|
||||
- `script-binding uosc/toggle-progress`
|
||||
- `script-binding uosc/context-menu`
|
||||
- `script-binding uosc/load-subtitles`
|
||||
- `script-binding uosc/select-subtitles`
|
||||
- `script-binding uosc/select-audio`
|
||||
- `script-binding uosc/select-video`
|
||||
- `script-binding uosc/navigate-playlist`
|
||||
- `script-binding uosc/show-in-directory`
|
||||
- `script-binding uosc/navigate-directory`
|
||||
- `script-binding uosc/next-file`
|
||||
- `script-binding uosc/prev-file`
|
||||
- `script-binding uosc/first-file`
|
||||
- `script-binding uosc/last-file`
|
||||
- `script-binding uosc/delete-file-next`
|
||||
- `script-binding uosc/delete-file-quit`
|
||||
- Option to briefly flash elements for set amount of time when the value they represent changes externally.
|
||||
- Option to pause video on short clicks, allowing you to use left mouse button for both video dragging and pausing.
|
||||
|
||||
Also tons of fixes and tweaks.
|
||||
|
||||
## 1.4.0 - 2020-Apr-04
|
||||
|
||||
Changed:
|
||||
- Rewritten `chapter_ranges` feature to support more powerful range definitions.
|
||||
The quick example from below can now be written as:
|
||||
```conf
|
||||
chapter_ranges=sponsor start<968638:0.2>sponsor end
|
||||
```
|
||||
Another example to display openings and endings of animes:
|
||||
```conf
|
||||
chapter_ranges=op<968638:0.5>.*,ed|ending<968638:0.5>.*|{eof}
|
||||
```
|
||||
Read options documentation to learn more about the syntax.
|
||||
|
||||
Fixed:
|
||||
- Some minor bug fixes.
|
||||
|
||||
## 1.3.0 - 2020-Apr-03
|
||||
|
||||
New:
|
||||
- Added `chapter_ranges` feature to display chapters that are intended to be ranges as bars instead of dots/lines. Read the docs for more details on how to use them.
|
||||
Quick example that displays skippable youtube video sponsor blocks from [](https://github.com/po5/mpv_sponsorblock):
|
||||
```conf
|
||||
chapter_ranges=Sponsor start-Sponsor end:968638:0.2
|
||||
```
|
||||
|
||||
## 1.2.0 - 2020-Apr-02
|
||||
|
||||
New:
|
||||
- Added `toggleseekbar` script binding.
|
||||
- Added `autohide` option to control UI autohide when cursor autohides. Off by default.
|
||||
|
||||
## 1.1.0 - 2020-Apr-02
|
||||
|
||||
New:
|
||||
- Proximity UI elements now hide on `cursor-autohide` (mpv's cursor autohide time option).
|
||||
- Added chapter indicators for both seekbar and progressbar. They can be configured with these new options:
|
||||
```conf
|
||||
# seekbar chapters indicator style: dots, lines, lines-top, lines-bottom
|
||||
# set to empty to disable
|
||||
seekbar_chapters=dots
|
||||
# seekbar chapters indicator opacity
|
||||
seekbar_chapters_opacity=0.3
|
||||
# progressbar chapters indicator style: dots, lines, lines-top, lines-bottom
|
||||
# set to empty to disable
|
||||
progressbar_chapters=dots
|
||||
# progressbar chapters indicator opacity
|
||||
progressbar_chapters_opacity=0.3
|
||||
```
|
||||
|
||||
Changed:
|
||||
- Now renders a 1px bottom border for both bars in no-border window mode so they can be visible when window is over a light background.
|
||||
- Improved formula for seekbar font size so it's more readable in thinner seekbar sizes.
|
||||
- Tweaked some default option values for sizes and visibility of both bars.
|
||||
- `bar_opacity` option got split up into `seekbar_opacity` and `progressbar_opacity`.
|
||||
- `bar_color_foreground` renamed to `color_foreground`.
|
||||
- `bar_color_background` renamed to `color_background`.
|
||||
|
||||
Fixed:
|
||||
- Default examples as well as `uosc.conf` file were not working because comments were on the same line as option declarations, which apparently mpv can't parse. So that's fixed now.
|
||||
|
||||
## 1.0.5 - 2020-Mar-07
|
||||
|
||||
Ensures time text seen above the cursor during seeking doesn't overflow the screen. This is a naive implementation that is only guessing the width of the text, since there is no other API to use for this.
|
||||
|
||||
## 1.0.4 - 2020-Mar-04
|
||||
|
||||
Tweaked styling of window controls to be more visible against pure black backgrounds.
|
||||
|
||||
## 1.0.3 - 2020-Mar-04
|
||||
|
||||
Simplified options and made them more explicit.
|
||||
|
||||
These options are gone:
|
||||
|
||||
```
|
||||
progressbar=yes/no # toggle progressbar
|
||||
progressbar_fullscreen=yes/no # toggle progressbar
|
||||
```
|
||||
|
||||
Their functionality moved here:
|
||||
|
||||
```
|
||||
progressbar_size=4 # progressbar size in pixels, 0 to disable
|
||||
progressbar_size_fullscreen=4 # same as ^ but when in fullscreen
|
||||
```
|
||||
|
||||
And you can also disable seekbar if you want:
|
||||
|
||||
```
|
||||
seekbar_size=40 # seekbar size in pixels, 0 to disable
|
||||
seekbar_size_fullscreen=40 # same as ^ but when in fullscreen
|
||||
```
|
||||
|
||||
## 1.0.2 - 2020-Mar-03
|
||||
|
||||
Fixed long window titles wrapping all over the place instead of being clipped by control buttons.
|
||||
|
||||
## 1.0.1 - 2020-Mar-03
|
||||
|
||||
**uosc** now won't render when default osc is not disabled (`osc=no`).
|
||||
|
||||
# 1.0.0 - 2020-Mar-02
|
||||
|
||||
Initial release.
|
199
README.md
199
README.md
@@ -27,189 +27,42 @@ Most notable features:
|
||||
|
||||
[Changelog](./CHANGELOG.md).
|
||||
|
||||
## Download
|
||||
|
||||
#### Latest version (recommended)
|
||||
|
||||
- [`uosc.lua`](https://github.com/darsain/uosc/releases/latest/download/uosc.lua) - script file
|
||||
- [`uosc.conf`](https://raw.githubusercontent.com/darsain/uosc/master/uosc.lua) - configuration file with default values (optional)
|
||||
|
||||
#### Development (unstable, might be broken)
|
||||
|
||||
- [`uosc.lua`](https://github.com/darsain/uosc/releases/latest/download/uosc.conf)
|
||||
- [`uosc.conf`](https://raw.githubusercontent.com/darsain/uosc/master/uosc.conf)
|
||||
|
||||
## Installation
|
||||
|
||||
**uosc** is a replacement for the built in osc, so that has to be disabled first.
|
||||
1. **uosc** is a replacement for the built in osc, so that has to be disabled first.
|
||||
|
||||
_List of all the possible places the configuration files & folders below can be located at is documented here: https://mpv.io/manual/master/#files_
|
||||
In your `mpv.conf` (_List of all the possible places where configuration files can be located in is documented here: https://mpv.io/manual/master/#files_):
|
||||
|
||||
In your `mpv.conf`:
|
||||
```config
|
||||
# required so that the 2 UIs don't fight each other
|
||||
osc=no
|
||||
# uosc provides its own seeking/volume indicators, so you also don't need this
|
||||
osd-bar=no
|
||||
# uosc will draw its own window controls if you disable window border
|
||||
border=no
|
||||
```
|
||||
|
||||
```config
|
||||
# required so that the 2 UIs don't fight each other
|
||||
osc=no
|
||||
# uosc provides its own seeking/volume indicators, so you also don't need this
|
||||
osd-bar=no
|
||||
# uosc will draw its own window controls if you disable window border
|
||||
border=no
|
||||
```
|
||||
2. Save `uosc.lua` into `scripts/` folder.
|
||||
|
||||
Download and save [`uosc.lua`](https://raw.githubusercontent.com/darsain/uosc/master/uosc.lua) into `scripts/` folder.
|
||||
|
||||
To configure **uosc**, create a `script-opts/uosc.conf` file, or download [`uosc.conf`](https://raw.githubusercontent.com/darsain/uosc/master/uosc.conf) from this repository, and save into `script-opts/` folder.
|
||||
3. To configure **uosc** to your likings, create a `script-opts/uosc.conf` file, or download `uosc.conf` with all default values from one of the links above, and save into `script-opts/` folder.
|
||||
|
||||
## Options
|
||||
|
||||
All available options with their default values:
|
||||
All of the available **uosc** options with their default values are in the provided `uosc.conf`. Follow one of the download links to the version of this file that matches your `uosc.lua`, or just peak the [latest development version](https://github.com/darsain/uosc/blob/master/uosc.conf) for a quick reference, but this might have options that are different or not available in stable release.
|
||||
|
||||
````conf
|
||||
# timeline size when fully retracted, 0 will hide it completely
|
||||
timeline_size_min=2
|
||||
# timeline size when fully expanded, in pixels, 0 to disable
|
||||
timeline_size_max=40
|
||||
# same as ^ but when in fullscreen
|
||||
timeline_size_min_fullscreen=0
|
||||
timeline_size_max_fullscreen=60
|
||||
# same thing as calling toggle-progress command once on startup
|
||||
timeline_start_hidden=no
|
||||
# comma separated states when timeline should always be visible. available: paused, audio
|
||||
timeline_persistency=
|
||||
# timeline opacity
|
||||
timeline_opacity=0.8
|
||||
# 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
|
||||
timeline_step=5
|
||||
# display seekable buffered ranges for streaming videos, syntax `color:opacity`,
|
||||
# color is an BBGGRR hex code, set to `none` to disable
|
||||
timeline_cached_ranges=345433:0.5
|
||||
# floating number font scale adjustment
|
||||
timeline_font_scale=1
|
||||
|
||||
# timeline chapters style: none, dots, lines, lines-top, lines-bottom
|
||||
chapters=dots
|
||||
chapters_opacity=0.3
|
||||
|
||||
# where to display volume controls: none, left, right
|
||||
volume=right
|
||||
volume_size=40
|
||||
volume_size_fullscreen=60
|
||||
volume_persistency=
|
||||
volume_opacity=0.8
|
||||
volume_border=1
|
||||
volume_step=1
|
||||
volume_font_scale=1
|
||||
|
||||
# playback speed widget: mouse drag or wheel to change, click to reset
|
||||
speed=no
|
||||
speed_size=46
|
||||
speed_size_fullscreen=68
|
||||
speed_persistency=
|
||||
speed_opacity=1
|
||||
speed_step=0.1
|
||||
speed_font_scale=1
|
||||
|
||||
# controls all menus, such as context menu, subtitle loader/selector, etc
|
||||
menu_item_height=36
|
||||
menu_item_height_fullscreen=50
|
||||
menu_wasd_navigation=no
|
||||
menu_hjkl_navigation=no
|
||||
menu_opacity=0.8
|
||||
menu_font_scale=1
|
||||
|
||||
# menu button widget
|
||||
# can be: never, bottom-bar, center
|
||||
menu_button=never
|
||||
menu_button_size=26
|
||||
menu_button_size_fullscreen=30
|
||||
menu_button_persistency=
|
||||
menu_button_opacity=1
|
||||
menu_button_border=1
|
||||
|
||||
# top bar with window controls and media title
|
||||
# can be: never, no-border, always
|
||||
top_bar=no-border
|
||||
top_bar_size=40
|
||||
top_bar_size_fullscreen=46
|
||||
top_bar_persistency=
|
||||
top_bar_controls=yes
|
||||
top_bar_title=yes
|
||||
|
||||
# window border drawn in no-border mode
|
||||
window_border_size=1
|
||||
window_border_opacity=0.8
|
||||
|
||||
# pause video on clicks shorter than this number of milliseconds, 0 to disable
|
||||
pause_on_click_shorter_than=0
|
||||
# flash duration in milliseconds used by `flash-{element}` commands
|
||||
flash_duration=1000
|
||||
# distances in pixels below which elements are fully faded in/out
|
||||
proximity_in=40
|
||||
proximity_out=120
|
||||
# BBGGRR - BLUE GREEN RED hex color codes
|
||||
color_foreground=ffffff
|
||||
color_foreground_text=000000
|
||||
color_background=000000
|
||||
color_background_text=ffffff
|
||||
# use bold font weight throughout the whole UI
|
||||
font_bold=no
|
||||
# show total time instead of time remaining
|
||||
total_time=no
|
||||
# hide UI when mpv autohides the cursor
|
||||
autohide=no
|
||||
# can be: none, flash, static, manual (controlled by flash-pause-indicator and decide-pause-indicator commands)
|
||||
pause_indicator=flash
|
||||
# screen dim when stuff like menu is open, 0 to disable
|
||||
curtain_opacity=0.5
|
||||
# sizes to list in stream quality menu
|
||||
stream_quality_options=4320,2160,1440,1080,720,480,360,240,144
|
||||
# load first file when calling next on a last file in a directory and vice versa
|
||||
directory_navigation_loops=no
|
||||
# file types to look for when navigating media files
|
||||
media_types=3gp,avi,bmp,flac,flv,gif,h264,h265,jpeg,jpg,m4a,m4v,mid,midi,mkv,mov,mp3,mp4,mp4a,mp4v,mpeg,mpg,oga,ogg,ogm,ogv,opus,png,rmvb,svg,tif,tiff,wav,weba,webm,webp,wma,wmv
|
||||
# file types to look for when loading external subtitles
|
||||
subtitle_types=aqt,gsub,jss,sub,ttxt,pjs,psb,rt,smi,slt,ssf,srt,ssa,ass,usf,idx,vt
|
||||
# used to approximate text width
|
||||
# if you are using some wide font and see a lot of right side clipping in menus,
|
||||
# try bumping this up
|
||||
font_height_to_letter_width_ratio=0.5
|
||||
# default open-file menu directory
|
||||
default_directory=~/
|
||||
|
||||
# `chapter_ranges` lets you transform chapter indicators into range indicators.
|
||||
#
|
||||
# Chapter range definition syntax:
|
||||
# ```
|
||||
# start_pattern<color:opacity>end_pattern
|
||||
# ```
|
||||
#
|
||||
# Multiple start and end patterns can be defined by separating them with `|`:
|
||||
# ```
|
||||
# p1|pN<color:opacity>p1|pN
|
||||
# ```
|
||||
#
|
||||
# Multiple chapter ranges can be defined by separating them with comma:
|
||||
#
|
||||
# chapter_ranges=range1,rangeN
|
||||
#
|
||||
# One of `start_pattern`s can be a custom keyword `{bof}` that will match
|
||||
# beginning of file when it makes sense.
|
||||
#
|
||||
# One of `end_pattern`s can be a custom keyword `{eof}` that will match end of
|
||||
# file when it makes sense.
|
||||
#
|
||||
# Patterns are lua patterns (http://lua-users.org/wiki/PatternsTutorial).
|
||||
# They only need to occur in a title, not match it completely.
|
||||
# Matching is case insensitive.
|
||||
#
|
||||
# `color` is a `bbggrr` hexadecimal color code.
|
||||
# `opacity` is a float number from 0 to 1.
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# Display anime openings and endings as ranges:
|
||||
# ```
|
||||
# chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}
|
||||
# ```
|
||||
#
|
||||
# Display skippable youtube video sponsor blocks from https://github.com/po5/mpv_sponsorblock
|
||||
# ```
|
||||
# chapter_ranges=sponsor start<3535a5:.5>sponsor end, segment start<3535a5:0.5>segment end
|
||||
# ```
|
||||
chapter_ranges=^op| op$|opening<968638:0.5>.*, ^ed| ed$|^end|ending$<968638:0.5>.*|{eof}, sponsor start<3535a5:.5>sponsor end, segment start<3535a5:0.5>segment end
|
||||
````
|
||||
|
||||
**uosc** respects `osd-font` option, so to change the font you want it to use, you have to change `osd-font` in `mpv.conf`.
|
||||
To change the font, **uosc** respects the mpv `osd-font` configuration. To change it, you have to declare `osd-font` in your `mpv.conf`.
|
||||
|
||||
## Keybindings
|
||||
|
||||
|
Reference in New Issue
Block a user