Add some scripts

This commit is contained in:
2021-02-16 01:07:53 +01:00
parent 2684fbfae2
commit 7d9c45878f
7 changed files with 120 additions and 0 deletions

28
scripts/tmux/fcitx Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
printState() {
# REQUIRES QT5-TOOLS
STATUS=$(qdbus "org.fcitx.Fcitx" "/inputmethod" "GetCurrentIM")
case $STATUS in
fcitx-keyboard-us)
echo 'US'
;;
fcitx-keyboard-no)
echo 'NO'
;;
mozc)
echo '日本語'
;;
*)
echo "$STATUS?"
;;
esac
}
while :
do
printState
sleep 1
done