Keyboard layout indicator in i3status (or i3blocks) bar

manjaroi3
keyboard-layout

#1

At the moment there is no layout indication within i3 bottom bar. Does anybody have the recipe to add either text or flag icon into bar to show the keyboard layout currently in use. Thanks in advance.


#2

here is what I am using with i3blocks for keyboard layout

[kblayout]
label=⌨
command=setxkbmap -query | grep layout | sed 's:  ::g'
interval=-1
color=#ffffff