summaryrefslogtreecommitdiff
path: root/home/.lang.sh
diff options
context:
space:
mode:
Diffstat (limited to 'home/.lang.sh')
-rwxr-xr-xhome/.lang.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/home/.lang.sh b/home/.lang.sh
new file mode 100755
index 0000000..8b9fab1
--- /dev/null
+++ b/home/.lang.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+ENGINES=$(ibus engine)
+case "$ENGINES" in
+ *en*)
+ echo "EN"
+ ;;
+ *pl*)
+ echo "PL"
+ ;;
+ *anthy*)
+ echo "JA"
+ ;;
+ *)
+ echo "??"
+ ;;
+esac