From 2d420c9aaf15d77daf7b9323bfad48439bc7fe6e Mon Sep 17 00:00:00 2001 From: Pylogmon Date: Sat, 4 Nov 2023 21:24:29 +0800 Subject: [PATCH] fix: Fix Language --- vitepress/docs/wayland.md | 2 +- vitepress/en/docs/wayland.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vitepress/docs/wayland.md b/vitepress/docs/wayland.md index b70eebf..38486b9 100644 --- a/vitepress/docs/wayland.md +++ b/vitepress/docs/wayland.md @@ -28,7 +28,7 @@ bind = ALT, C, exec, grim -g "$(slurp)" ~/.cache/com.pot-app.desktop/pot_screens 由于目前 pot 在 Wayland 下还无法获取到正确的鼠标坐标,所以内部的实现无法工作。 对于某些桌面环境/窗口管理器,可以通过设置窗口规则来实现窗口跟随鼠标位置,这里以 Hyprland 为例: -```conf +```ini windowrulev2 = float, class:(pot), title:(Translator|OCR|PopClip|Screenshot Translate) # Translation window floating windowrulev2 = move cursor 0 0, class:(pot), title:(Translator|PopClip|Screenshot Translate) # Translation window follows the mouse position. ``` diff --git a/vitepress/en/docs/wayland.md b/vitepress/en/docs/wayland.md index 253e21b..d56a48e 100644 --- a/vitepress/en/docs/wayland.md +++ b/vitepress/en/docs/wayland.md @@ -17,7 +17,7 @@ In some pure Wayland DE/WM (such as Hyprland), the built-in screenshot feature o Below is an example of configuration in Hyprland (capturing screenshots using `grim` and `slurp`): -```conf +```ini bind = ALT, X, exec, grim -g "$(slurp)" ~/.cache/com.pot-app.desktop/pot_screenshot_cut.png && curl "127.0.0.1:60828/ocr_recognize?screenshot=false" bind = ALT, C, exec, grim -g "$(slurp)" ~/.cache/com.pot-app.desktop/pot_screenshot_cut.png && curl "127.0.0.1:60828/ocr_translate?screenshot=false" ```