-
-
Notifications
You must be signed in to change notification settings - Fork 6
Dialog & Clipboard
Shuanglei Tao edited this page Feb 3, 2024
·
2 revisions
dialog.lua is a simple wrapper of the dialog and clipboard interfaces.
- common file filters
- open files/folder (from clipboard)
- open bluray/dvd iso or dir
- add files to video/audio/sub track (from clipboard)
- add files to playlist (from clipboard)
- set clipboard from Property Expansion
- save dialog to export playlist as m3u8 file
- save dialog for screenshot (with pre-defined jpg/png/webp file types)
To use it, put dialog.lua
in your mpv scripts
folder and add these lines to input.conf
:
Ctrl+o script-message-to dialog open #menu: Open > Files...
Ctrl+O script-message-to dialog open-folder #menu: Open > Folder...
_ script-message-to dialog open append #menu: Open > Add To Playlist...
_ ignore #menu: Open > -
_ script-message-to dialog open bd-iso #menu: Open > Bluray ISO...
_ script-message-to dialog open dvd-iso #menu: Open > DVD ISO...
_ ignore #menu: Open > -
Ctrl+v script-message-to dialog open-clipboard #menu: Open > Clipboard
_ ignore #menu: -
_ script-message-to dialog open add-sub #menu: Tracks > Add Subtitle
_ script-message-to dialog open add-video #menu: Tracks > Add Video
_ script-message-to dialog open add-audio #menu: Tracks > Add Audio
_ ignore #menu: -
_ script-message-to dialog open-clipboard append #menu: Clipboard > Add To Playlist
_ script-message-to dialog open-clipboard add-sub #menu: Clipboard > Add to Subtitle Track
_ script-message-to dialog open-clipboard add-video #menu: Clipboard > Add to Video Track
_ script-message-to dialog open-clipboard add-audio #menu: Clipboard > Add to Audio Track
_ ignore #menu: -
_ script-message-to dialog set-clipboard ${path} #menu: Tools > Copy File Path
_ script-message-to dialog set-clipboard ${metadata} #menu: Tools > Copy Metadata
_ script-message-to dialog save playlist #menu: Tools > Save Playlist
_ script-message-to dialog save screenshot #menu: Tools > Save screenshot