#398 xkb plugin: Custom images for groups

open
nobody
None
5
2011-09-29
2011-09-29
Lenar Shakirov
No

Some users use keyboard layouts "ru(tt)", "ru(udm)" or etc, but for xkb plugin all this layouts looks like "ru" and xkb plugin shows flag of Russia.

This patch give the way to configure path for image for each xkb group:
$ setxkbmap -layout ru,'ru(tt)',us,'ru(udm)'
$ cat .config/lxpanel/LXDE/panels/panel
...
Plugin {
type = xkb
Config {
DisplayType=0
Grp2Image=tt
Grp4Image=udm
}
}
...

And now we place proper flags to /usr/share/lxpanel/images/xkb-flags/{tt,udm}.png and we can use custom image for xkb group

Discussion