Skip to content

Commit

Permalink
Change defaults
Browse files Browse the repository at this point in the history
Scale by default as noted in #17

Use F instead of ctrl+f to avoid conflict with scripts that use ctrl+f
for searching
  • Loading branch information
christoph-heinrich committed Dec 11, 2022
1 parent c5fec08 commit adbd8b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -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. `<!has_many_video,video,stream>command:theaters:script-binding quality_menu/video_formats_toggle#@vformats>1?Video`
Expand Down
4 changes: 2 additions & 2 deletions quality-menu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions quality-menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit adbd8b7

Please sign in to comment.