From 2c2d62589e68738d5b15e288885f034acff49c3e Mon Sep 17 00:00:00 2001 From: sudacode Date: Sun, 8 Mar 2026 23:06:39 -0700 Subject: [PATCH] update --- .codex/config.toml##os.Linux | 3 ++ .config/SubMiner/config.jsonc##os.Linux | 29 ++++++++++++++----- .config/hypr/keybindings.conf | 2 +- .config/mimeapps.list | 1 + .config/mpv/script-opts/modernz.conf | 4 +-- .../mpv-youtube-queue.conf##default | 3 -- 6 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.codex/config.toml##os.Linux b/.codex/config.toml##os.Linux index 7261a4f..f39c4fa 100644 --- a/.codex/config.toml##os.Linux +++ b/.codex/config.toml##os.Linux @@ -73,6 +73,9 @@ trust_level = "trusted" [projects."/home/sudacode/projects/japanese/subminer-yomitan"] trust_level = "trusted" +[projects."/home/sudacode/github/t3code"] +trust_level = "trusted" + [mcp_servers.backlog] command = "backlog" args = ["mcp", "start"] diff --git a/.config/SubMiner/config.jsonc##os.Linux b/.config/SubMiner/config.jsonc##os.Linux index ca5794b..b0b1262 100644 --- a/.config/SubMiner/config.jsonc##os.Linux +++ b/.config/SubMiner/config.jsonc##os.Linux @@ -1,5 +1,9 @@ { "keybindings": [ + { + "key": "KeyF", + "command": ["cycle", "fullscreen"], + }, { "key": "KeyR", "command": ["add", "sub-pos", -5], @@ -60,11 +64,7 @@ }, "ai": { "enabled": true, - "alwaysUseAiTranslation": true, - "apiKey": "", "model": "openai/gpt-oss-120b:free", - "baseUrl": "https://openrouter.ai/api/v1", - "sourceLanguage": "Japanese", "systemPrompt": "You are a translation engine for translating Japanese into natural-sounding, context-aware English. Return only the translated text with no extra explanations or commentary. The translation must preserve the original tone and intent of the source. If the input is not in the target language, translate it to the target language. If the input is already in the target language, return it as is.", }, "media": { @@ -109,6 +109,13 @@ }, "tags": ["SubMiner"], }, + "ai": { + "enabled": true, + "alwaysUseAiTranslation": false, + "apiKeyCommand": "cat ~/.openrouterapikey", + "baseUrl": "https://openrouter.ai/api/v1", + "sourceLanguage": "Japanese", + }, "secondarySub": { "autoLoadSecondarySub": true, "secondarySubLanguages": ["en", "eng"], @@ -171,9 +178,17 @@ "maxEntryResults": 10, }, "youtubeSubgen": { - "mode": "automatic", - "whisperBin": "/usr/bin/whisper-cli", - "whisperModel": "~/models/whisper.cpp/ggml-small.bin", + "mode": "automatic", // automatic | preprocess | off + "whisperBin": "whisper-cli", + "whisperModel": "~/models/whisper.cpp/ggml-large-v3.bin", + "whisperVadModel": "~/models/ggml-silero-v6.2.0.bin", + "whisperThreads": 8, + "fixWithAi": true, + "ai": { + "model": "google/gemini-2.5-flash-lite", + "systemPrompt": "Fix transcription mistakes only. Preserve the original language exactly. Do not translate, paraphrase, summarize, merge, split, reorder, or omit cues. Preserve cue numbering, cue count, timestamps, line breaks within each cue, and valid SRT formatting exactly. Return only corrected SRT.", + }, + "primarySubLanguages": ["ja", "jpn"], }, "anilist": { "characterDictionary": { diff --git a/.config/hypr/keybindings.conf b/.config/hypr/keybindings.conf index 0cd1d32..9fd5c9f 100644 --- a/.config/hypr/keybindings.conf +++ b/.config/hypr/keybindings.conf @@ -19,7 +19,7 @@ bind = $mainMod, V, togglefloating, bind = $mainMod, d, exec, $menu # bind = $mainMod, P, pseudo, # dwindle bind = $mainMod SHIFT, p, exec, "$HOME/.local/bin/hyprland-pin.sh" -bind = $mainMod, t, togglesplit, # dwindle +# bind = $mainMod, t, togglesplit, # dwindle bind = $mainMod, f, fullscreen, bind = $mainMod, i, swapnext diff --git a/.config/mimeapps.list b/.config/mimeapps.list index b2b9eb9..6fe07ac 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -153,3 +153,4 @@ text/html=zen.desktop text/vnd.trolltech.linguist=zen.desktop x-scheme-handler/nxm=modorganizer2-nxm-handler.desktop x-scheme-handler/discord-1361252452329848892=discord-1361252452329848892.desktop +x-scheme-handler/opencode=opencode-desktop-handler.desktop diff --git a/.config/mpv/script-opts/modernz.conf b/.config/mpv/script-opts/modernz.conf index e8c5a62..71f96bc 100644 --- a/.config/mpv/script-opts/modernz.conf +++ b/.config/mpv/script-opts/modernz.conf @@ -90,7 +90,7 @@ window_title=no # show window controls (close, minimize, maximize) in borderless/fullscreen window_controls=yes # same as title but for window_top_bar -windowcontrols_title=${media-title} +# windowcontrols_title=${media-title} # Subtitle display settings # raise subtitles above the OSC when shown @@ -136,7 +136,7 @@ download_path=~~desktop/mpv # show screenshot button screenshot_button=no # flag for screenshot button: "subtitles", "video", "window", "each-frame" -screenshot_flag=subtitles +# screenshot_flag=subtitles # show window on top button ontop_button=yes diff --git a/.config/mpv/script-opts/mpv-youtube-queue.conf##default b/.config/mpv/script-opts/mpv-youtube-queue.conf##default index 310bc21..c892e00 100644 --- a/.config/mpv/script-opts/mpv-youtube-queue.conf##default +++ b/.config/mpv/script-opts/mpv-youtube-queue.conf##default @@ -4,7 +4,6 @@ download_current_video=ctrl+d download_selected_video=ctrl+D move_cursor_down=ctrl+j move_cursor_up=ctrl+k -load_queue=ctrl+l move_video=ctrl+m play_next_in_queue=ctrl+n open_video_in_browser=ctrl+o @@ -12,8 +11,6 @@ open_channel_in_browser=ctrl+O play_previous_in_queue=ctrl+p print_current_video=ctrl+P print_queue=ctrl+q -save_queue=ctrl+s -save_full_queue=ctrl+S remove_from_queue=ctrl+x play_selected_video=ctrl+ENTER browser=zen-browser