This is a blocklet, which displays an active keyboard layout. It also supports layout switching.
- Font Awesome 4.7: aur
- xkb-switch.
- Copy
languagefile to your blocklets directory (/usr/lib/i3blocks, in my case).
sudo cp language /usr/lib/i3blocks- Add language configuration block to your
i3blocks.conffile:
[language]
interval=once
signal=8
markup=pango
- Add a keyboard shortcut for sending a signal to i3blocks. Example string for Alt+Shift combination in
i3:
bindcode Mod1+50 exec --no-startup-id pkill -RTMIN+8 i3blocks
