A
A
Alexey Sundukov2020-02-04 13:02:57
ubuntu
Alexey Sundukov, 2020-02-04 13:02:57

Ubuntu keyboard shortcut to select specific language?

In Ubuntu, of course, there are options in the settings for "next source" and "previous source" when choosing a language. But how to make it so that with a certain combination the English folding is included, and with another Russian?
For example: LShift+LAlt turns on EN (it doesn't matter which one is currently on), and LShift+LCtrl turns on RU. Maybe?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Ruslan Ganeev, 2020-02-04
@GaneevRR

You need to put Tweak or use another keyboard shortcut.

P
philpirj, 2020-04-29
@philpirj

Yes, it's possible. I will not fully solve your problem, but here's how I set it up. Right Alt is one layout, left Alt is another.

// ~/.config/xkb/symbols/custom
xkb_symbols "default" {
  replace key <LALT> { [ ISO_Last_Group ] };
  replace key <RALT> { [ ISO_First_Group ] };
};

// .xinitrc
# See full list of combinations http://cgit.freedesktop.org/xorg/lib/libX11/plain/nls/en_US.UTF-8/Compose.pre
setxkbmap -layout "us+custom(default),ru(winkeys)" -option "" -compat "complete+custom(latch)" -print | xkbcomp -I"$HOME/.config/xkb" - "${DISPLAY%%.*}"

Full config is here .

V
Valdemar Smorman, 2020-02-04
@smorman

Ubuntu native dconf-editor or gconf-editor depending on Ubuntu version.
All settings are there. keys and can also be set in Therm knowing the scheme from these editors (it is always displayed at the top of the editor):
gsettings .............

S
Sergey Pankov, 2020-02-04
@trapwalker

It's not a fact that this article will answer your question in its original form, but at least it's a fairly broad answer about keyboard shortcuts in Ubuntu.
Today's article on Habré: https://habr.com/ru/post/486872/

M
Maxim Sokhryakov, 2020-02-04
@maximsohryakov

If you have Gnome DE, you can use the Tweak program.
Keyboards & mouse section -> additional Layout -> Switching to another layout

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question