diff --git a/README.md b/README.md index f4bc128..ae59cd7 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ Simply open the video or audio menu, select your prefered format and confirm you 1. Save the `quality-menu.lua` into your [scripts directory](https://mpv.io/manual/stable/#script-location) 2. Set key bindings in [`input.conf`](https://mpv.io/manual/stable/#input-conf) ``` - Ctrl+f script-binding quality_menu/video_formats_toggle - Alt+f script-binding quality_menu/audio_formats_toggle + F script-binding quality_menu/video_formats_toggle + Alt+f script-binding quality_menu/audio_formats_toggle ``` **(optional)** `Ctrl+r script-binding quality_menu/reload` @@ -40,8 +40,8 @@ Simply open the video or audio menu, select your prefered format and confirm you - For [uosc](https://github.com/tomasklaen/uosc) (each is optional) 1. Add the video and audio menu to the uosc menu by appending `#! ...` to your key bindings in [`input.conf`](https://mpv.io/manual/stable/#input-conf) ``` - Ctrl+f script-binding quality_menu/video_formats_toggle #! Stream Quality > Video - Alt+f script-binding quality_menu/audio_formats_toggle #! Stream Quality > Audio + F script-binding quality_menu/video_formats_toggle #! Stream Quality > Video + Alt+f script-binding quality_menu/audio_formats_toggle #! Stream Quality > Audio ``` 2. Add buttons to the `contols=` option in your [`uosc.conf`](https://github.com/tomasklaen/uosc/blob/main/script-opts/uosc.conf) 1. `command:theaters:script-binding quality_menu/video_formats_toggle#@vformats>1?Video` diff --git a/quality-menu.conf b/quality-menu.conf index ac91945..68904fd 100644 --- a/quality-menu.conf +++ b/quality-menu.conf @@ -7,7 +7,7 @@ down_binding=DOWN WHEEL_DOWN # select menu entry select_binding=ENTER MBTN_LEFT # close menu -close_menu_binding=ESC MBTN_RIGHT Ctrl+f Alt+f +close_menu_binding=ESC MBTN_RIGHT F Alt+f # youtube-dl version(could be youtube-dl or yt-dlp, or something else) ytdl_ver=yt-dlp @@ -19,7 +19,7 @@ unselected_and_active=▷ - unselected_and_inactive=○ - # font size scales by window, if false requires larger font and padding sizes -scale_playlist_by_window=no +scale_playlist_by_window=yes # playlist ass style overrides inside curly brackets, \keyvalue is one field, extra \ for escape in lua # example {\\fnUbuntu\\fs10\\b0\\bord1} equals: font=Ubuntu, size=10, bold=no, border=1 diff --git a/quality-menu.lua b/quality-menu.lua index b189f6f..e7cd8a8 100644 --- a/quality-menu.lua +++ b/quality-menu.lua @@ -5,8 +5,8 @@ -- -- Usage: -- add bindings to input.conf: --- Ctrl+f script-binding quality_menu/video_formats_toggle --- Alt+f script-binding quality_menu/audio_formats_toggle +-- F script-binding quality_menu/video_formats_toggle +-- Alt+f script-binding quality_menu/audio_formats_toggle local mp = require 'mp' local utils = require 'mp.utils' @@ -19,7 +19,7 @@ local opts = { up_binding = "UP WHEEL_UP", down_binding = "DOWN WHEEL_DOWN", select_binding = "ENTER MBTN_LEFT", - close_menu_binding = "ESC MBTN_RIGHT Ctrl+f Alt+f", + close_menu_binding = "ESC MBTN_RIGHT F Alt+f", --youtube-dl version(could be youtube-dl or yt-dlp, or something else) ytdl_ver = "yt-dlp", @@ -31,7 +31,7 @@ local opts = { unselected_and_inactive = "○ - ", --font size scales by window, if false requires larger font and padding sizes - scale_playlist_by_window = false, + scale_playlist_by_window = true, --playlist ass style overrides inside curly brackets, \keyvalue is one field, extra \ for escape in lua --example {\\fnUbuntu\\fs10\\b0\\bord1} equals: font=Ubuntu, size=10, bold=no, border=1