This patch replaces main functionality of xxkb. It will remember the client’s xkb status and restores it when client became focused.
Firstly you have to configure xkb as you need as described here. The patch depends on two variables:
showxkbflag defines, should patch show current xkb group on the bar or not;
xkb_layoutsarray defines the text, which will appear on the bar according to current group if
There is new field in Rule struckture, by witch you can specify default xkb layout for window (see config.def.h for details). This could be useful with dmenu_run, but unfortunately for some reasons rules can’t be applied to dmenu.
- dwm-6.1-xkb.diff (2014-02-15)