mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: 568a1bd654eceac57de291da85dee98765e0830e
Parent: 988fa6c69c46fca2aff616376d2f22b1e0d73902
Author: Ren Tatsumoto
Date:   Tue,  4 Aug 2020 20:18:03 +0300

additional key bindings

Diffstat:
MREADME.md | 28++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -14,13 +14,11 @@ If you already have your dotfiles set up according to [Arch Wiki recommendations](https://wiki.archlinux.org/index.php/Dotfiles#Tracking_dotfiles_directly_with_Git), execute: ``` $ config submodule add 'https://github.com/Ajatt-Tools/mpvacious.git' ~/.config/mpv/scripts/subs2srs - ``` If not, either proceed to Arch Wiki and come back when you're done, or simply clone the repo: ``` $ git clone 'https://github.com/Ajatt-Tools/mpvacious.git' ~/.config/mpv/scripts/subs2srs - ``` Open or create ```~/.config/mpv/scripts/modules.lua``` and add these lines: ``` @@ -101,6 +99,32 @@ After the card is created, you can find it by typing ```tag:subs2srs added:1``` in the Anki Browser. Then use [qolibri](https://aur.archlinux.org/packages/qolibri/) or similar software to add definitions to the card. +## Additional mpv key bindings +I recommend adding these lines to your ```~/.config/mpv/input.conf``` +for smoother experience. +``` +# vim-like seeking +l seek 5 +h seek -5 +j seek -60 +k seek 60 + +# Cycle between subtitle files +K cycle sub +J cycle sub down + +# Skip to previous/next subtitle line +H no-osd sub-seek -1 +L no-osd sub-seek 1 + +# Add/subtract 50 ms delay from subs +Z add sub-delay +0.05 +z add sub-delay -0.05 + +# Adjust timing to previous/next subtitle +X sub-step 1 +x sub-step -1 +``` ## Hacking * https://mpv.io/manual/master/#lua-scripting * https://github.com/mpv-player/mpv/blob/master/player/lua/defaults.lua