diff --git a/.config/mpv-modules/ModernZ b/.config/mpv-modules/ModernZ index f66905a..fadaf74 160000 --- a/.config/mpv-modules/ModernZ +++ b/.config/mpv-modules/ModernZ @@ -1 +1 @@ -Subproject commit f66905acff19095dc8c85e641530c76f2f241f45 +Subproject commit fadaf74b08d90d656dd2d03f98f953918e3702c4 diff --git a/.config/mpv-modules/animecards b/.config/mpv-modules/animecards index ae00200..f23d406 160000 --- a/.config/mpv-modules/animecards +++ b/.config/mpv-modules/animecards @@ -1 +1 @@ -Subproject commit ae0020060e95dae9a1be2a8502d96e78a5fea081 +Subproject commit f23d4061be5e749bf031f6216f4b3255215bb67c diff --git a/.config/mpv-modules/mpvacious b/.config/mpv-modules/mpvacious index 9f9e9df..2629602 160000 --- a/.config/mpv-modules/mpvacious +++ b/.config/mpv-modules/mpvacious @@ -1 +1 @@ -Subproject commit 9f9e9df06da963500fe882fb03a840d150722801 +Subproject commit 2629602b90069156a6aa45d8fd2ddcea160998ba diff --git a/.config/mpv/input.conf b/.config/mpv/input.conf index 834e08f..e4c564c 100644 --- a/.config/mpv/input.conf +++ b/.config/mpv/input.conf @@ -225,7 +225,8 @@ ctrl+B ignore # script-binding mpvacious-overwrite-selected-note ctrl+m ignore # script-binding mpvacious-update-last-note ctrl+M ignore # script-binding mpvacious-overwrite-last-note G script-binding mpvacious-quick-card-menu-open -alt+g script-binding mpvacious-quick-card-sel-menu-open +alt+g ignore +alt+G script-binding mpvacious-quick-card-sel-menu-open ctrl+c script-binding mpvacious-copy-primary-sub-to-clipboard ctrl+C script-binding mpvacious-copy-secondary-sub-to-clipboard ctrl+= script-binding mpvacious-autocopy-toggle diff --git a/.config/mpv/mpv.conf##default b/.config/mpv/mpv.conf##default index 7d411bc..bcec42f 100644 --- a/.config/mpv/mpv.conf##default +++ b/.config/mpv/mpv.conf##default @@ -25,7 +25,7 @@ sub-fix-timing=yes sub-ass-override=scale sub-gauss=1.0 sub-gray=yes -sub-pos=100 +sub-pos=95 # --- Audio chain --- volume=75 @@ -111,6 +111,8 @@ demuxer-max-back-bytes=200MiB # Keep recent data handy for quick reverse seeks cache-secs=30 demuxer-readahead-secs=30 +msg-level=subs2srs=warn + [anime] profile-desc="Anime upscaling with ArtCNN" glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl" diff --git a/.config/mpv/script-opts/subs2srs.conf b/.config/mpv/script-opts/subs2srs.conf index ce529e4..2a5b507 100644 --- a/.config/mpv/script-opts/subs2srs.conf +++ b/.config/mpv/script-opts/subs2srs.conf @@ -46,6 +46,9 @@ menu_font_name=Noto Serif CJK JP # Change this if you have changed webBindAddress in AnkiConnect's settings. ankiconnect_url=127.0.0.1:8765 +# AnkiConnect server api key (optional) +#ankiconnect_api_key= + ## ## Toggleables. ## Possible values: `yes` or `no`. @@ -330,3 +333,40 @@ ffmpeg_audio_args=-af loudnorm=I=-16:TP=-1.5:LRA=11:dual_mono=true mpv_audio_args=--af-append=loudnorm=I=-16:TP=-1.5:LRA=11:dual_mono=true #mpv_audio_args= #mpv_audio_args=--af-append=silenceremove=1:0:-50dB + + +## +## Custom Sub Filter +## Place a `subs2srs_sub_filter.lua` file +## in the `~/.config/mpv/subs2srs_sub_filter` directory. +## The custom script must return a table +## that includes either of a `preprocess` or a `trim` function (or both). +## +## - `preprocess(text)`: Executes before trimming/cleaning. +## - `trim(text)`: Replaces the built-in trimming logic. +## + +# Enable custom sub preprocessing by default (yes, no) +custom_sub_filter_enabled=no + +# Notification prefix for toggle +custom_sub_filter_notification=Custom Sub Filter + +# Use a custom trim instead of the built in one (yes, no) +use_custom_trim=no + +## +## New note check timer +## + +# Enable the check note timer feature. +# If set to `yes`, mpvacious will periodically check for new notes in Anki +# and automatically update them with media if they match the configured note type +# I.e., you create a note with GoldenDict, Rikaitan, etc., +# then mpvacious updates the note and adds audio and image automatically. +enable_new_note_timer=yes + +# Interval in seconds for checking for new notes. +# This setting controls how often mpvacious checks for new notes in Anki. +# Only used when enable_new_note_timer is set to `yes` +new_note_timer_interval_seconds=5 diff --git a/.config/mpv/scripts/mpv-youtube-queue.lua b/.config/mpv/scripts/mpv-youtube-queue.lua index 779e4d7..416678b 120000 --- a/.config/mpv/scripts/mpv-youtube-queue.lua +++ b/.config/mpv/scripts/mpv-youtube-queue.lua @@ -1 +1 @@ -../submodules/mpv-youtube-queue/mpv-youtube-queue.lua \ No newline at end of file +../../../projects/lua/mpv-youtube-queue/mpv-youtube-queue.lua \ No newline at end of file