Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Thank you for your answer – it saved me a lot of googling! And this is how to switch to last used input method: gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager()._mruSources[1].activate()" Commented Jan 8, 2019 at 19:35
  • This. Works exactly the same as keyboard shortcut. Commented Sep 25, 2021 at 19:58
  • 4
    These commands doesn't work anymore after upgrade from gnome-shell 40 to 41 because Gnome restricted to use eval due to security reasons. Possible workaround is to wrap them into custom extensions. I wrapped my switcher to last used layout here: gist.github.com/Envek/85f40478d1c8b9658621190569046447 Commented Nov 22, 2021 at 17:52
  • 1
    For Gnome >= 41 this will require an extension to work. See detailed steps to make it work on askubuntu Commented Sep 12, 2022 at 12:24