summarylogtreecommitdiffstats
path: root/current
blob: 3e3fa6359be9c13bc2cfa1e4d1d1c3e7dbf748ca (plain)
1
2
3
4
5
6
7
8
9
10
11
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"