diff --git a/.claude/settings.json##os.Darwin b/.claude/settings.json##os.Darwin index 9c9d9b1..fe1e72e 100644 --- a/.claude/settings.json##os.Darwin +++ b/.claude/settings.json##os.Darwin @@ -16,7 +16,7 @@ "hooks": [ { "type": "command", - "command": "notify-send 'Claude Code' 'Claude Code needs your attention'" + "command": "osascript -e 'display notification \"Claude Code needs your attention\" with title \"Claude Code\"'" } ] } @@ -25,7 +25,8 @@ "enabledPlugins": { "pyright-lsp@claude-plugins-official": true, "typescript-lsp@claude-plugins-official": true, - "clangd-lsp@claude-plugins-official": true + "clangd-lsp@claude-plugins-official": true, + "claude-mem@thedotmack": true }, "sandbox": { "enabled": false, diff --git a/.config/mpv-modules/ModernZ b/.config/mpv-modules/ModernZ index fadaf74..d917f6e 160000 --- a/.config/mpv-modules/ModernZ +++ b/.config/mpv-modules/ModernZ @@ -1 +1 @@ -Subproject commit fadaf74b08d90d656dd2d03f98f953918e3702c4 +Subproject commit d917f6e253f22fcd0369751fc740816538ad729c diff --git a/.config/mpv/mpv.conf##default b/.config/mpv/mpv.conf##default index 1e99675..afb1b59 100644 --- a/.config/mpv/mpv.conf##default +++ b/.config/mpv/mpv.conf##default @@ -165,7 +165,7 @@ glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl" scale=ewa_lanczossharp dither=error-diffusion deband=yes # Crucial for anime gradients -input-ipc-server=/tmp/mpv-yomitan-socket +input-ipc-server=/tmp/subminer-socket [anime-subs] profile-cond=p["slang"] == "ja" or p["slang"] == "ja.hi" diff --git a/.config/mpv/mpv.conf##os.Darwin b/.config/mpv/mpv.conf##os.Darwin index 7e1ca96..1eda6f6 100644 --- a/.config/mpv/mpv.conf##os.Darwin +++ b/.config/mpv/mpv.conf##os.Darwin @@ -198,7 +198,7 @@ glsl-shaders="~~/shaders/ArtCNN_C4F32.glsl" scale=ewa_lanczossharp dither=error-diffusion deband=yes # Crucial for anime gradients -input-ipc-server=/tmp/mpv-yomitan-socket +input-ipc-server=/tmp/subminer-socket # Anime subtitles profile [anime-subs] diff --git a/.config/mpv/script-opts/mpv-youtube-queue.conf##os.Darwin b/.config/mpv/script-opts/mpv-youtube-queue.conf##os.Darwin index 5679c9a..e4b1f05 100644 --- a/.config/mpv/script-opts/mpv-youtube-queue.conf##os.Darwin +++ b/.config/mpv/script-opts/mpv-youtube-queue.conf##os.Darwin @@ -30,6 +30,6 @@ menu_timeout=5 show_errors=yes ytdlp_file_format=mp4 ytdlp_output_template=%(uploader)s/%(title)s.%(ext)s -use_history_db=yes +use_history_db=no backend_host=http://localhost backend_port=42069 diff --git a/.config/mpv/scripts/animecards b/.config/mpv/scripts/animecards deleted file mode 120000 index e63d8d1..0000000 --- a/.config/mpv/scripts/animecards +++ /dev/null @@ -1 +0,0 @@ -../submodules/animecards/animecards \ No newline at end of file diff --git a/.config/mpv/scripts/autosubsync-mpv b/.config/mpv/scripts/autosubsync-mpv deleted file mode 120000 index 82e82e8..0000000 --- a/.config/mpv/scripts/autosubsync-mpv +++ /dev/null @@ -1 +0,0 @@ -../submodules/autosubsync-mpv \ No newline at end of file diff --git a/.config/mpv/scripts/subs2srs b/.config/mpv/scripts/subs2srs deleted file mode 120000 index ed3f75a..0000000 --- a/.config/mpv/scripts/subs2srs +++ /dev/null @@ -1 +0,0 @@ -../submodules/mpvacious \ No newline at end of file diff --git a/.config/mpv/scripts/youtube-upnext.lua b/.config/mpv/scripts/youtube-upnext.lua deleted file mode 120000 index fd586c1..0000000 --- a/.config/mpv/scripts/youtube-upnext.lua +++ /dev/null @@ -1 +0,0 @@ -../submodules/mpv-youtube-upnext/youtube-upnext.lua \ No newline at end of file diff --git a/.config/subminer/config.jsonc b/.config/subminer/config.jsonc index e3a9d35..32585be 100644 --- a/.config/subminer/config.jsonc +++ b/.config/subminer/config.jsonc @@ -1,7 +1,4 @@ { - "subtitlePosition": { - "yPercent": 17.38459152016546 - }, "keybindings": [ { "key": "Space", @@ -58,8 +55,9 @@ ] } ], + "auto_start_overlay": false, "texthooker": { - "openBrowser": false + "openBrowser": true }, "websocket": { "enabled": "auto", @@ -70,32 +68,46 @@ "url": "http://127.0.0.1:8765", "deck": "Minecraft", "pollingRate": 200, - "audioField": "ExpressionAudio", - "imageField": "Picture", - "sentenceField": "Sentence", - "generateAudio": true, - "generateImage": true, - "imageType": "avif", - "imageFormat": "webp", - "miscInfoPattern": "[mpv-yomitan] %f (%t)", - "overwriteAudio": false, - "overwriteImage": true, - "highlightWord": true, - "showNotificationOnUpdate": true, - "notificationType": "system", - "audioPadding": 0.5, - "fallbackDuration": 3, - "animatedFps": 24, - "animatedMaxWidth": 640, - "animatedMaxHeight": null, - "animatedCrf": 35, - "autoUpdateNewCards": false, - "sentenceCardModel": "Lapis Morph", - "sentenceCardSentenceField": "Sentence", - "sentenceCardAudioField": "SentenceAudio", - "isLapis": true, - "mediaInsertMode": "append", - "auto_start_overlay": false, + "fields": { + "audio": "ExpressionAudio", + "image": "Picture", + "sentence": "Sentence", + "miscInfo": "MiscInfo" + }, + "media": { + "generateAudio": true, + "generateImage": true, + "imageType": "avif", + "imageFormat": "webp", + "animatedFps": 24, + "animatedMaxWidth": 640, + "animatedMaxHeight": null, + "animatedCrf": 35, + "audioPadding": 0.5, + "fallbackDuration": 3, + "maxMediaDuration": 30 + }, + "behavior": { + "overwriteAudio": false, + "overwriteImage": true, + "mediaInsertMode": "append", + "highlightWord": true, + "notificationType": "system", + "autoUpdateNewCards": false + }, + "metadata": { + "pattern": "[SubMiner] %f (%t)" + }, + "isLapis": { + "enabled": true, + "sentenceCardModel": "Lapis Morph", + "sentenceCardSentenceField": "Sentence", + "sentenceCardAudioField": "SentenceAudio" + }, + "isKiku": { + "enabled": true, + "fieldGrouping": "manual" + }, "secondarySub": { "autoLoadSecondarySub": true, "secondarySubLanguages": [ @@ -104,8 +116,16 @@ ] } }, + + "subsync": { + "shortcut": "Alt+KeyS", + "defaultMode": "manual", + "alass_path": "/Users/sudacode/.local/bin/alass-cli", + "ffsubsync_path": "/Users/sudacode/.local/bin/ffsubsync", + "ffmpeg_path": "/opt/homebrew/bin/ffmpeg" + }, "subtitleStyle": { - "ontFamily": "Noto Sans CJK JP Regular, Noto Sans CJK JP, Arial Unicode MS, Arial, sans-serif", + "fontFamily": "Noto Sans CJK JP, Arial Unicode MS, Arial, sans-serif", "fontSize": 35, "fontColor": "#cad3f5", "fontWeight": "normal", @@ -117,6 +137,15 @@ "backgroundColor": "transparent" } }, + "jimaku": { + // "apiKey": "YOUR_API_KEY", + "apiKeyCommand": "cat ~/.jimaku-api-key" + // or use a command that outputs the key: + // "apiKeyCommand": "cat ~/.jimaku_key", + "apiBaseUrl": "https://jimaku.cc", + "languagePreference": "ja", + "maxEntryResults": 10 + }, "shortcuts": { "copySubtitle": "CommandOrControl+C", "copySubtitleMultiple": "CommandOrControl+Shift+C", @@ -126,4 +155,4 @@ "toggleSecondarySub": "CommandOrControl+Shift+V", "multiCopyTimeoutMs": 3000 } -} \ No newline at end of file +} diff --git a/.gitconfig##os.Darwin b/.gitconfig##os.Darwin index e6dc398..68c6414 100644 --- a/.gitconfig##os.Darwin +++ b/.gitconfig##os.Darwin @@ -1,6 +1,7 @@ [user] name = sudacode email = suda@sudacode.com + signingkey = /Users/sudacode/.ssh/yuh.pub [init] defaultBranch = main [push] @@ -19,4 +20,8 @@ [color] ui = auto [core] - pager = less -FRX + pager = delta +[gpg] + format = ssh +[commit] + gpgsign = true diff --git a/.zsh/.zshrc##os.Darwin b/.zsh/.zshrc##os.Darwin index 3a911be..a318839 100644 --- a/.zsh/.zshrc##os.Darwin +++ b/.zsh/.zshrc##os.Darwin @@ -62,3 +62,12 @@ zstyle ':url-quote-magic:*' url-quotes '' # bind it to both typing and pasting zle -N self-insert url-quote-magic zle -N bracketed-paste bracketed-paste-magic + +# bun completions +[ -s "/Users/sudacode/.bun/_bun" ] && source "/Users/sudacode/.bun/_bun" + +# bun +export BUN_INSTALL="$HOME/.bun" +export PATH="$BUN_INSTALL/bin:$PATH" + +alias claude-mem='/Users/sudacode/.bun/bin/bun "/Users/sudacode/.claude/plugins/marketplaces/thedotmack/plugin/scripts/worker-service.cjs"'