diff options
Diffstat (limited to 'current')
-rwxr-xr-x | current | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/current b/current new file mode 100755 index 000000000000..3e3fa6359be9 --- /dev/null +++ b/current @@ -0,0 +1,12 @@ +#!/bin/bash + +## +# Print out identifier of current input method +## + +PATH="/bin" + +gdbus call --session --dest org.fcitx.Fcitx \ + --object-path /inputmethod \ + --method org.fcitx.Fcitx.InputMethod.GetCurrentIM | + grep -Po "'([^']++)'" | sed -Ee "s/'([^']++)'/\\1/g" |