From 71c933ee859fdfa8e4366cae4dbdcacb4f2488b6 Mon Sep 17 00:00:00 2001 From: Bernd Date: Thu, 16 Jan 2025 21:09:27 +0500 Subject: [PATCH] changing default keybind --- README.md | 2 +- SubTranslate.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8e5aaa..684c338 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ A simple [mpv](https://mpv.io/) Lua script that uses Google Translate API calls ## Usage 1. **Open** a video with subtitles in mpv. -2. When you see a subtitle on-screen, press **Ctrl+T** (you can change this keybind in the options at the beginning of the script). +2. When you see a subtitle on-screen, press **T** (you can change this keybind in the options at the beginning of the script). 3. The script sends the subtitle text to Google Translate, retrieves the translation, and displays it in the OSD. ## Changing the Target Language diff --git a/SubTranslate.lua b/SubTranslate.lua index e8ca899..65419e3 100644 --- a/SubTranslate.lua +++ b/SubTranslate.lua @@ -3,7 +3,7 @@ local o = { source_lang = 'en', -- Translate from, e.g. 'ru', 'en', 'de', etc. Change to 'auto' to detect the source language destination_lang = 'ru', -- Translate to duration = 10, -- how long will the translation be shown on the OSD screen (in secs.) - key_binding = "ctrl+t" -- Keybind for translating the current sub + key_binding = "t" -- Keybind for translating the current sub } local mp = require 'mp'