T
T
tereh2020-04-15 15:16:43
linux
tereh, 2020-04-15 15:16:43

Only switching layouts left ctrl to first layout, right ctrl to last layout does not work for me?

There is the latest version of CentOS 7, gnome 3.28, kernel 5.6.3-1.el7.elrepo.x86_64.

Now switching works on CapsLock.

Tried all available options in gnome-tweaks, nothing works.

Any attempts to bind Russian and English to different keys do nothing.
For example, Caps - eng, Shift-Caps - rus - does not work
The option "left ctrl to first layout, right ctrl to last layout" - disables Ctrl from keyboard shortcuts. But the switch still doesn't work.

Is there a way to have a different switching method for each language?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
SOTVM, 2020-04-15
@sotvm

try with XNeur or with gXNeur gui,
there are options to assign a layout for each language installed in the system,
see /etc/xneur/xneurrc or ~/.xneur/xneurrc
AddBind EnableLayout1
AddBind EnableLayout2
etc.
PS
and what does not suit the change in caps?

T
tereh, 2020-04-15
@tereh

Thanks for the advice.
Caps is inconvenient because you need to check the current language every time.
XNeur failed to install/run on CentOS 7 and Ubuntu 20.04.
----------
Added:
Found 2 solutions to bind to literal key combinations ctrl-letter or alt-letter (CentOS 7 + Gnome 3 and Ubuntu 20.04):
1) new way with Gnome
Bind these commands to
English keyboard
shortcuts gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager() .inputSources[0].activate()"
in Russian
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[1 ].activate()"
Source:
https://unix.stackexchange.com/questions/316998/ho...
2) legacy method (layout indicator doesn't work and doesn't work when desktop is locked)
# Set the layout to US English
ibus engine xkb:us::eng
# Set the layout to Russian
ibus engine xkb:ru::rus
This is done in settings - devices - keyboard.
PS
There are various patches for triggering ctrl-shift in the discussion here: https://bugs.launchpad.net/ubuntu/+source/gnome-co...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question