Fix MPV menu: resolve Lua syntax error and enhance logging

- Remove extra 'end)' that caused '<eof>' expected syntax error at line 2834
- Add comprehensive logging to M.show_menu() with [MENU] prefix
- Add logging wrappers to keybindings (m and mbtn_right)
- Implement fallback menu opening methods (commandv and command)
- Fix audio-display mpv.conf setting to 'no' (was invalid 'yes')
This commit is contained in:
2026-02-03 18:26:36 -08:00
parent cc19403087
commit 81b11a8517
6 changed files with 124 additions and 26 deletions

View File

@@ -0,0 +1,18 @@
# Custom input bindings for Medios-Macina
# This file overrides MPV's default input bindings to ensure our script bindings work.
# Override MPV's default right-click behavior (which toggles pause)
# and route it to our custom menu handler instead.
# Use script-message to directly call the Lua function
mbtn_right script-message medios-menu-trigger
# Menu toggle (middle-click alternative if needed)
m script-message medios-menu-trigger
# Standard info/delete shortcuts
ctrl+i script-message medios-info-trigger
ctrl+Del script-message medios-delete-trigger
# Lyrics
l script-message medeia-lyric-toggle-trigger
L script-message medeia-lyric-toggle-shift-trigger