Switching among keyboard layouts

Hi guys,

My current attempts go in two directions.

Firstly, I need to retrieve all defined keyboard layouts (per language, if possible) as appears in any keyboard settings application. I believe that this could be done reliably… but I don’t know how. If you use an external libraries (other than Gtk+, Gdk…), please be kind to me and help me as you can.

Secondly, I’d like to make a little code to easily switch among defined keyboard layouts (independently of those assigned in Desktop Environment groups). I think that could be done, too.

(Note: I took this piece of code https://bit.ly/2kwFBqO, but I think there is no hint in there)

Is there any piece of code, documentation… ?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.