Created
April 19, 2024 03:39
-
-
Save yangniao23/dc199c49196ca37c401daa476c751359 to your computer and use it in GitHub Desktop.
dbus 経由で fcitx5 でアクティブな入力メソッドを取得する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dbus-send --print-reply=literal --session --dest=org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.CurrentInputMethod |
skk 起動時だけ SandS を有効にしたい,みたいなときに使う
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fcitx5-skk を使っている場合
が返ってくる.改行が入っていないことに注意.
別ユーザ (root とか)から別のユーザのものを取ってくる場合,sudo と
DBUS_SESSION_BUS_ADDRESS
の指定が必要ユーザ名を
user
,uidを1000
としてを先頭に付ける