1

How can I make this setting permanent:

 gsettings set org.gnome.desktop.input-sources xkb-options []

I type it every time when I login because I can't use left ctrl + shift it is switching keyboards for me I don't want to use it for switching keyboards.

Ubuntu 22.04, GNOME 42.9, Mutter ,

  • Have you tried removing the shortcut from the GUI? – terdon Nov 10 '23 at 13:12
  • How? It is set somewhere in console it asked to set shortcut when I upgraded to 22.04 – Aleksandar Pavić Nov 10 '23 at 15:58
  • 1
    Please [edit] your question and add the Ubuntu flavor you are using, so we know if it is Gnome or XFCE or whatever. But the control center/setting app of the GUI should have a place for you to change this. – terdon Nov 10 '23 at 16:23
  • I thought that gsettings are only available on gnome? – Aleksandar Pavić Nov 10 '23 at 20:20
  • 1
    No, it used to work with unity if I remember correctly and certainly works with cinnamon and most likely budgie, and probably others I don't know. So, if you're using Gnome, isn't there a control center thing where you can go to something like "keyboard => language" or similar (sorry, I haven't used gnome since the time of gnome2). Maybe this or this? – terdon Nov 10 '23 at 20:59
  • yeah, but... The command I put there is the one I want to use... Win + Space This was I asked during upgrade I think it's default shortcut... And gets reverted after each reboot... I can't find where is it being set – Aleksandar Pavić Nov 10 '23 at 21:49
  • That's why I am suggesting that instead of running that which doesn't seem to persist across reboots, you instead try to clear the shortcut using the standard GUI tool. I mean, sure you can run that command every time you log in by adding something like sleep 10 && gsettings set org.gnome.desktop.input-sources xkb-options [] as the last line f your ~/.profile or ~/.bash_profile, or you can use Gnome's autorun functionality and have it run on login, but these are ugly hacks while just unsetting the shortcut from the settings might be a final solution. – terdon Nov 10 '23 at 22:13
  • yeah, thanks for the idea... That will definetley work, better than using systemd – Aleksandar Pavić Nov 10 '23 at 22:17
  • @AleksandarPavić you can lock the gsettings key. Have you tried that? – PRATAP Nov 11 '23 at 07:25
  • How to lock gsettings key? – Aleksandar Pavić Nov 12 '23 at 11:59

0 Answers0