Troubles with keyboad layout switching

Hi I am new to Linux
Starting from Debian around 7 I set layout switching to Super key and it was very fast and convenient. But after update around month ago it stop working. And Super key kinda stop working. I try to use new layout switching but this very slow and inconvenient.
After I unbind Super key by
gsettings set org.gnome.mutter overlay-key ‘’
It start working again.

The question is how it work and how make it work this way on new system?


screencast

Similar troubles

So, what exactly is the issue here? Do you mean your system freezes or that the shortcut is just inconvenient for you?

Super key is reserved for Overview, so after updating to new version GNOME just “took it back”

I am infinitely sorry, this is misunderstanding. My question is not ‘what is it’. My question is ‘how it work’.

It is obvious that there are two functions that switch layout
Thirst Gnome. It is controlled by

org.gnome.desktop.wm.keybindings switch-input-source @as []
org.gnome.desktop.wm.keybindings switch-input-source-backward @as []

It freezes about 1s after switching.
I had turned it off.

Screenshot From 2025-04-22 07-54-27

Second function work now for me. It switch layout instantly. I am interesting in, where it is and how controlled.
This function currently takes the Super key press. So the Super key does not work in Gnome as usual.

In addition, I would be very grateful if you could show me where in the source code the layout switch function is located and what parameter determines the freeze time. Better on github.

Ok. I know how. Will it work forever?

You don’t need to apologize :slightly_smiling_face: I’m not a developer, so I can’t point you to the code sorry. And GNOME doesn’t use Github, but their own instance of gitlab

GNOME doesn’t touch these, so yeah. At least they never stopped working for me

Am I correct that time of layout switching defined by this variable and is 1.5s?

Am I correct that it is packed to ELF archive
/user/libexec/gnome-shell-perf-helper
?

Can I extract ELF to /lib and use it unpacked?

It seems that ELF file is not really “compressed”. So .js inside file can be edited or “patched” by any editor. This may be simplest way to correct a little something unhandy.

This is not going to work out. But my older comrades suggested another way out.

Count as solution number two.

Thank you for answers

So in summary
Today you can use new layout switcher by Gnome or old fashioned by Xorg, I guess. They uses different variables to control. Do not forget disable unused one else they will interfere each-other.

In case new switcher too slow for you the following can help