diff options
author | davidpkj <davidpenkow1@gmail.com> | 2022-08-24 20:30:48 +0200 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2022-08-24 20:30:48 +0200 |
commit | 4f7ccffecdfa36c5e531654b8eec44199935d497 (patch) | |
tree | 971f684f37ece45354ac12e790681a08498a1f7f /scripts/getibusinput |
added box scripts
Diffstat (limited to 'scripts/getibusinput')
-rwxr-xr-x | scripts/getibusinput | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/getibusinput b/scripts/getibusinput new file mode 100755 index 0000000..4d52273 --- /dev/null +++ b/scripts/getibusinput @@ -0,0 +1,11 @@ +#!/bin/bash + +STRING="$(ibus read-config | grep -o engines-order:.* | sed 's/engines-order: \[\|\]\|,//g' | awk '{ print $1 }')" + +if [[ "$STRING" == "'xkb:de::deu'" ]]; then + echo "DE" +elif [[ "$STRING" == "'anthy'" ]]; then + echo "JA" +elif [[ "$STRING" == "'xkb:de:ru:rus'" ]]; then + echo "RU" +fi |