for each keyboard layout, parse /usr/share/X11/xkb/rules/base.xml
variantList -> variant -> for each -> description and name.
if there are variants available for a layout - display an entry (two for layout1 and layout2) in addon -> system -> keyboard. another way is to show second menu to select variant (if available) after selecting layout.
there should be always default "" (for no variant). save the name into .cache/xbc/layout -> XKBVARIANT=...
if you implement it as a second popup menu - it must be clear that it is "variant selection dialog", and the selection must be presented in the addon UI after changing.
for each keyboard layout, parse /usr/share/X11/xkb/rules/base.xml variantList -> variant -> for each -> description and name.
if there are variants available for a layout - display an entry (two for layout1 and layout2) in addon -> system -> keyboard. another way is to show second menu to select variant (if available) after selecting layout.
there should be always default "" (for no variant). save the name into .cache/xbc/layout -> XKBVARIANT=...
if you implement it as a second popup menu - it must be clear that it is "variant selection dialog", and the selection must be presented in the addon UI after changing.