diff options
| author | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-09-27 17:38:39 +0200 |
| commit | 0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch) | |
| tree | 11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /.config/mpv | |
| parent | 4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff) | |
| download | dotfiles-master.tar.gz | |
Automated-commit-by: dots Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.config/mpv')
| -rw-r--r-- | .config/mpv/config | 40 | ||||
| -rw-r--r-- | .config/mpv/input.conf | 39 | ||||
| -rw-r--r-- | .config/mpv/mvi/input.conf | 27 | ||||
| -rw-r--r-- | .config/mpv/script-opts/subs2srs.conf | 22 | ||||
| -rw-r--r-- | .config/mpv/script-opts/thumbfast.conf | 4 |
5 files changed, 69 insertions, 63 deletions
diff --git a/.config/mpv/config b/.config/mpv/config index 41b10cb..746839f 100644 --- a/.config/mpv/config +++ b/.config/mpv/config @@ -1,10 +1,20 @@ -vo = gpu-next -hwdec = auto +# https://github.com/mpv-player/mpv/discussions/13909 +# vo=gpu-next +# gpu-api=vulkan +# hwdec=vulkan -screenshot-directory = ~/pictures/screenshots/mpv -screenshot-template = '%tY%tm%td-%tH%tM%tS-%F-%p' -screenshot-format = png -screenshot-png-compression = 9 +autofit-larger=90%x80% + +screenshot-directory=~/pictures/screenshots/mpv +screenshot-template='%tY%tm%td-%tH%tM%tS-%F-%p' +screenshot-format=png +screenshot-png-compression=9 + +sub-font=Rosario +sub-ass-override=scale +sub-file-paths=subs:Subs:subtitles:sub:~/desktop/subs + +save-watch-history=yes # # profiles @@ -13,6 +23,9 @@ screenshot-png-compression = 9 [fullscreen] vo=dmabuf-wayland +[anon] +save-watch-history=no + [protocol.http] profile-desc="Optimized for streaming video" glsl-shaders-clr @@ -34,14 +47,15 @@ osc=yes osd-bar=yes [bigcache] -demuxer-readahead-secs=20 -demuxer-max-bytes=512M +cache=yes +demuxer-readahead-secs=120 +demuxer-max-bytes=1G demuxer-max-back-bytes=512M -[gpuhq] -profile-desc="Optimized for HQ rendering" -profile-cond=height <= 1440 -profile=gpu-hq +# [gpuhq] +# profile-desc="Optimized for HQ rendering" +# profile-cond=height <= 1440 +# profile=gpu-hq [scale] profile-desc="Use fancy scaling algorithms" @@ -118,7 +132,7 @@ title="${?media-title:${media-title}}${!media-title:No file}" video-aspect-override=no loop-file=inf image-display-duration=inf -input-conf=~~/mvi/input.conf +input-commands-add=load-input-conf '~~/mvi/input.conf' input-commands-add=load-script '~~/mvi/scripts/ruler.lua' input-commands-add=load-script '~~/mvi/scripts/detect-image.lua' input-commands-add=load-script '~~/mvi/scripts/freeze-window.lua' diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index b67dab7..54e3755 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -29,11 +29,11 @@ HOME seek 0 absolute-percent END seek 100 absolute-percent $ seek 100 absolute-percent -Shift+RIGHT playlist-next -n playlist-next #! controls > playlist next -Shift+LEFT playlist-prev -p playlist-prev #! controls > playlist prev -Alt+Shift+s playlist-shuffle #! controls > playlist shuffle +Shift+RIGHT playlist-next #! controls > playlist next +Shift+LEFT playlist-prev #! controls > playlist prev +Alt+Shift+s playlist-shuffle #! controls > playlist shuffle +n script-binding uosc/next #! controls > next +p script-binding uosc/prev #! controls > prev #Alt+RIGHT frame-step #Alt+LEFT frame-back-step @@ -53,12 +53,12 @@ PGUP add chapter 1 PGDWN add chapter -1 a cycle audio -A script-binding uosc/audio #! select > audio +A ignore D cycle deinterlace -v script-binding uosc/video #! select > video +V ignore s cycle sub -S script-binding uosc/subtitles #! select > sub +S ignore Ctrl+s script-binding uosc/load-subtitles #! select > load sub... e add sub-scale +0.1 #! sub > scale up w add sub-scale -0.1 #! sub > scale down @@ -72,8 +72,8 @@ X add audio-delay +0.1 #! delay > audio +0.1 Ctrl+z sub-step -1 #! delay > sub-step -1 Ctrl+x sub-step 1 #! delay > sub-step +1 -U cycle-values sub-ass-override "scale" "force" "strip" "no" #! sub > ass override -V cycle sub-visibility #! sub > visibility +U cycle-values sub-ass-override "force" "no" "yes" "scale" "strip" #! sub > ass override +v cycle sub-visibility #! sub > visibility # Meta+s cycle sub-ass-force-margins # PLAYER BINDINGS @@ -126,13 +126,11 @@ Ctrl+SPACE script-binding uosc/toggle-ui MBTN_MID script-binding uosc/menu : script-binding uosc/menu Enter script-binding uosc/menu -P script-binding uosc/items #! select > playlist -C script-binding uosc/chapters #! select > chapters +P ignore +C ignore o script-binding uosc/open-file #! select > file... Ctrl+o script-binding openuri/openuri #! select > uri... Ctrl+Shift+o script-binding openuri/pasteuri #! select > paste -Ctrl+n script-binding uosc/next-file -Ctrl+p script-binding uosc/prev-file # various Alt+w script-binding webm/display-webm-encoder #! utils > webm encoder @@ -145,7 +143,15 @@ Alt+b script-binding blur/toggle-blur #! utils > blur # gallery g ignore -Shift+g script-message playlist-view-toggle #! utils > playlist/gallery view +g-SPACE script-binding uosc/menu +g-a script-binding uosc/audio #! select > audio +g-v script-binding uosc/video #! select > video +g-c script-binding uosc/chapters #! select > chapters +g-s script-binding uosc/subtitles #! select > sub +g-p script-binding uosc/items #! select > playlist + +g-g script-message playlist-view-toggle #! utils > gallery +Shift+g script-message playlist-view-toggle #! utils > gallery # yanktime y-y script_binding yanky/yanktime #! utils > yank > time @@ -180,7 +186,6 @@ Ctrl+n script-binding mpvacious-export-note #! mpvacious > export note I apply-profile interpolate #! profiles > interpolate Ctrl+Shift+0 apply-profile reset #! profiles > reset -Ctrl+Shift+1 apply-profile interpolate #! profiles > interpolate -Ctrl+Shift+2 apply-profile cache #! profiles > cache +Ctrl+Shift+2 apply-profile bigcache #! profiles > bigcache Ctrl+Shift+3 apply-profile scale #! profiles > scale Ctrl+Shift+4 apply-profile compressor #! profiles > compressor diff --git a/.config/mpv/mvi/input.conf b/.config/mpv/mvi/input.conf index 1d5b989..ccf35d2 100644 --- a/.config/mpv/mvi/input.conf +++ b/.config/mpv/mvi/input.conf @@ -4,28 +4,6 @@ 4 change-list script-opts append ruler-scale=25 5 change-list script-opts append ruler-max_size=20,20 -SPACE repeatable playlist-next -alt+SPACE repeatable playlist-prev - -# familiar binds -n playlist-next -p playlist-prev - -UP ignore -DOWN ignore -LEFT repeatable playlist-prev -RIGHT repeatable playlist-next - -# simple reminder of default bindings -#1 add contrast -1 -#2 add contrast 1 -#3 add brightness -1 -#4 add brightness 1 -#5 add gamma -1 -#6 add gamma 1 -#7 add saturation -1 -#8 add saturation 1 - # mouse-centric bindings MBTN_RIGHT script-binding drag-to-pan MBTN_LEFT script-binding pan-follows-cursor @@ -92,9 +70,6 @@ d script-message ruler # Toggling between pixel-exact reproduction and interpolation a cycle-values scale nearest ewa_lanczossharp -# Toggle color management on or off -c cycle icc-profile-auto - # Screenshot of the window output S screenshot window @@ -105,5 +80,5 @@ P script-message force-print-filename # ADVANCED: you can define bindings that belong to a "section" (named "image-viewer" here) like so: #alt+SPACE {image-viewer} repeatable playlist-prev -#SPACE {image-viewer} repeatable playlist-next +SPACE {image-viewer} repeatable playlist-next # to load them conditionally with a command. See scripts-opts/image_viewer.conf for how you can do this diff --git a/.config/mpv/script-opts/subs2srs.conf b/.config/mpv/script-opts/subs2srs.conf index 09e2af4..600bb63 100644 --- a/.config/mpv/script-opts/subs2srs.conf +++ b/.config/mpv/script-opts/subs2srs.conf @@ -1,13 +1,25 @@ -autoclip=yes +check_for_updates=no +reload_config_before_card_creation=yes -deck_name=subs2srs +autoclip=no + +allow_duplicates=no +deck_name=AJT Mining::Mpvacious model_name=Japanese sentences sentence_field=SentKanji secondary_field=SentEng audio_field=SentAudio image_field=Image -note_tag=subs2srs +note_tag=mpvacious +vocab_field=VocabKanji +vocab_audio_field=VocabAudio +miscinfo_enable=yes +miscinfo_field=Notes +miscinfo_format=%n (%t) use_ffmpeg=yes -snapshot_format=webp -opus_container=webm +opus_container=ogg +snapshot_format=avif +snapshot_quality=50 + +preview_audio=yes diff --git a/.config/mpv/script-opts/thumbfast.conf b/.config/mpv/script-opts/thumbfast.conf index 5f5a2a6..5be2221 100644 --- a/.config/mpv/script-opts/thumbfast.conf +++ b/.config/mpv/script-opts/thumbfast.conf @@ -6,10 +6,10 @@ tone_mapping=no network=no # Enable hardware decoding -hwdec=yes +hwdec=no # Spawn thumbnailer earlier for faster loads -spawn_first=yes +spawn_first=no # Make smaller thumbnails max_height=150 |