From a344407b615f272b8eba943b3a36c40dae0b2cb8 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 13 Jan 2022 08:53:35 +0100 Subject: added custom keyboard layout indicator script for polybar --- .local/share/bin/kbindicator | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .local/share/bin/kbindicator (limited to '.local/share') 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 -- cgit v1.2.3