Skip to content

Commit

Permalink
fix: Fix Language
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed Nov 4, 2023
1 parent cf9d34d commit 2d420c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vitepress/docs/wayland.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
2 changes: 1 addition & 1 deletion vitepress/en/docs/wayland.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand Down

0 comments on commit 2d420c9

Please sign in to comment.