diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-01-13 08:53:35 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-01-13 08:53:35 +0100 |
commit | a344407b615f272b8eba943b3a36c40dae0b2cb8 (patch) | |
tree | 495030cd9b2ea4a02307b7cf73e55cf9cba2d256 /.local/share | |
parent | 46daf1f264f9165cfc09d5134c87314ded970500 (diff) |
added custom keyboard layout indicator script for polybar
Diffstat (limited to '.local/share')
-rwxr-xr-x | .local/share/bin/kbindicator | 9 |
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 |