summaryrefslogtreecommitdiffstats
path: root/public/.local/bin/sb-input
diff options
context:
space:
mode:
Diffstat (limited to 'public/.local/bin/sb-input')
-rwxr-xr-xpublic/.local/bin/sb-input9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/.local/bin/sb-input b/public/.local/bin/sb-input
new file mode 100755
index 0000000..4fb1575
--- /dev/null
+++ b/public/.local/bin/sb-input
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+icon="🌐"
+layout="$(setxkbmap -query | grep layout | awk '{print $2}')"
+
+# fcitx state, 0 for close, 1 for inactive, 2 for active
+test $(fcitx5-remote) = 2 && layout="日本語"
+
+echo $icon$layout