aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-01-13 08:53:35 +0100
committerlonkaars <loek@pipeframe.xyz>2022-01-13 08:53:35 +0100
commita344407b615f272b8eba943b3a36c40dae0b2cb8 (patch)
tree495030cd9b2ea4a02307b7cf73e55cf9cba2d256 /.local
parent46daf1f264f9165cfc09d5134c87314ded970500 (diff)
added custom keyboard layout indicator script for polybar
Diffstat (limited to '.local')
-rwxr-xr-x.local/share/bin/kbindicator9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/share/bin/kbindicator b/.local/share/bin/kbindicator
new file mode 100755
index 0000000..fec586c
--- /dev/null
+++ b/.local/share/bin/kbindicator
@@ -0,0 +1,9 @@
+#!/bin/sh
+ENGINE="$(ibus engine)"
+
+case $ENGINE in
+ "anthy") echo "jp" ;;
+ "xkb:us::eng") echo "us" ;;
+ "xkb:us:intl:eng") echo "us-intl" ;;
+*) ;;
+esac