Switch to specific keyboard layout using key combination

Found this discussion How to set GNOME keyboard layout programatically

No answers here.
Using the same approach, but it feels really hacky.
Came back from KDE Neon to Gnome. Sadly enough I could bind switch to specific layout in KDE easily using GUI without any hacks. Maybe there is a better way to do it in Gnome?

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