Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问linux 下支持“针对特定程序使用英文模式”功能吗? #40

Closed
tankb52 opened this issue Dec 29, 2021 · 3 comments
Closed

Comments

@tankb52
Copy link

tankb52 commented Dec 29, 2021

就是以下配置,在windows 下面是可以的。
在 fcitx5-rime 上支持吗?
另外 Linux下的程序名,如givm应该怎么获取呢?

    # "app_options/gvim.exe":
    #     ascii_mode: true
@wengxt wengxt closed this as completed in 471d826 Dec 29, 2021
@wengxt
Copy link
Member

wengxt commented Dec 29, 2021

你可以试试 master,把 app_options 写到 ~/.local/share/fcitx5/rime/fcitx5.custom.yaml

Fcitx5 获取到的程序名称可以用这个命令查看 dbus-send --print-reply=literal --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.DebugInfo

@wengxt
Copy link
Member

wengxt commented Dec 29, 2021

Group [x11::0] has 1 InputContext(s)
IC [dbf44643b1824b14b84f4d15da3da927] program:kwrite frontend:dbus cap:6000800072 focus:0
Input Context without group

例如这个就表示有一个 kwrite 连接到了 fcitx

当然这个是有限制的,不一定所有的 frontend 都能获得/获得正确的名字
用 im module 的 gtk/qt 程序可以,xim 如果程序设置了 pid 在 x property 上也可以,wayland 输入法协议不可以

@tankb52
Copy link
Author

tankb52 commented Feb 4, 2022

好的, 这个功能我测试在5.0.13上已经实现了。
先前没有留意,原来配置文件要写在 ~/.local/share/fcitx5/rime/fcitx5.custom.yaml 里面。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants