aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/kbindicator
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-13 12:13:35 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-13 12:13:35 +0200
commit4257f6dbdc84aa419b0e8fc623fead4a57ddd3ac (patch)
treeb8f4f46acf24ada39b3a584262092c297c04bb5e /.local/share/bin/kbindicator
parent869efc2096fbb4f0bc250549e8178c12d2747335 (diff)
fix kbindicator script and small cleanup
Diffstat (limited to '.local/share/bin/kbindicator')
-rwxr-xr-x.local/share/bin/kbindicator10
1 files changed, 5 insertions, 5 deletions
diff --git a/.local/share/bin/kbindicator b/.local/share/bin/kbindicator
index fec586c..819abb2 100755
--- a/.local/share/bin/kbindicator
+++ b/.local/share/bin/kbindicator
@@ -1,9 +1,9 @@
#!/bin/sh
-ENGINE="$(ibus engine)"
+CONTROLLER="`qdbus 'org.fcitx.Fcitx5' '/controller' 'org.fcitx.Fcitx.Controller1.CurrentInputMethod'`"
-case $ENGINE in
- "anthy") echo "jp" ;;
- "xkb:us::eng") echo "us" ;;
- "xkb:us:intl:eng") echo "us-intl" ;;
+case $CONTROLLER in
+ "keyboard-us") echo "us" ;;
+ "keyboard-us-intl") echo "us-intl" ;;
+ "mozc") echo "jp" ;;
*) ;;
esac