Is there a way from command line to retrieve the list of all available keyboard layouts and relative variants?
I need to list all the valid layout/variants choices to be used then from setxkbmap.
Also about the layout toggle options, is there a way to retrieve a list of all available choices (e.g. grp:shift_caps_toggle , ...)
I know that with
I retrieve the list of my current ones, but I need the whole list of options.
I've been told about the command
which provides all the info to the command line.
man -P cat xkeyboard-config
the output goes to stdout and can be parsed with scripts or c code