From dd61ca7aa9634ef6e50e254091ce9379296e810c Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 13 May 2020 15:08:50 +0200 Subject: [PATCH] [mpv] Add key configuration Added somewhat vim-like key configuration. Added context-menu opened with menu key on keyboard. Fixes #100 --- mpv/.config/mpv/input.conf | 49 ++++++++++++++++++++++++++++++++++++++ mpv/README.md | 2 ++ 2 files changed, 51 insertions(+) create mode 100644 mpv/.config/mpv/input.conf diff --git a/mpv/.config/mpv/input.conf b/mpv/.config/mpv/input.conf new file mode 100644 index 0000000..e884bed --- /dev/null +++ b/mpv/.config/mpv/input.conf @@ -0,0 +1,49 @@ +q quit + +l seek 5 +L seek 60 +h seek -5 +H seek -60 + +p cycle pause # play/pause + +J playlist-next +K playlist-prev +k add volume 5 +j add volume -5 + ++ add volume 2 +- add volume -2 + +a add speed 0.1 +A add speed -0.1 + +d add audio-delay 0.100 # for unsynched audio video +D add audio-delay -0.100 + +u add sub-delay -0.1 # subtract 100 ms delay from subs +U add sub-delay +0.1 # add + +s cycle sub # choose subtitles +S cycle sub down # choose subtitles (reverse) + +f cycle fullscreen # toggle fullscreen + +F5 async screenshot # take a screenshot +Shift+F5 async screenshot video # screenshot without subtitles + +i show-text ${playlist} # diplay osd playlist +R cycle-values video-aspect "16:9" "4:3" "3.25:1" "no" "-1" # cycle aspect ratios + +# uosc definitions and menu +o script-binding uosc/peek-timeline +menu script-binding uosc/menu + +# script-binding uosc/open-file #! Open file +# script-binding uosc/load-subtitles #! Load subtitles +# script-binding uosc/subtitles #! Select subtitles +# script-binding uosc/audio #! Select audio +# async screenshot #! Utils > Screenshot +# script-binding uosc/playlist #! Utils > Playlist +# script-binding uosc/chapters #! Utils > Chapters +# script-binding uosc/open-config-directory #! Utils > Open config directory diff --git a/mpv/README.md b/mpv/README.md index a76e176..1e95f10 100644 --- a/mpv/README.md +++ b/mpv/README.md @@ -11,3 +11,5 @@ mpv is set up to hopefully strike a balance between high quality playback, strea * playback position is *not* saved for every file by default, but can be used when quitting with shift-q (default mpv behavior) * streaming video is optimized for a 1080p display, it will avoid qualities higher than that if possible * default video is adjusted for playback during the day, in a normally lit room +* simple context menu (opened with `menu` key on keyboard) to load files, subtitles, chapters, and more +* newly defined keybindings, look in `input.conf` for their definitions