From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Drozdov Subject: Re: Two keyboard layouts with toggle in console Date: Fri, 10 Jan 2020 15:50:45 +0300 Message-ID: References: <4331671578249966@vla5-c5051da8689e.qloud-c.yandex.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37430) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iptkj-0006sE-3J for help-guix@gnu.org; Fri, 10 Jan 2020 07:51:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iptkh-0001nL-Ne for help-guix@gnu.org; Fri, 10 Jan 2020 07:51:00 -0500 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]:40375) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iptkh-0001f7-B8 for help-guix@gnu.org; Fri, 10 Jan 2020 07:50:59 -0500 Received: by mail-ed1-x52a.google.com with SMTP id b8so1418705edx.7 for ; Fri, 10 Jan 2020 04:50:58 -0800 (PST) In-Reply-To: <4331671578249966@vla5-c5051da8689e.qloud-c.yandex.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Kurshakov Dmitriy Cc: help-guix@gnu.org Manual proposes to do it at runtime: We=E2=80=99ve discussed how to specify the default keyboard layout of your = system when it starts, but you can also adjust it at run time: If you=E2=80=99re using GNOME, its settings panel has a =E2=80=9CRegion & = Language=E2=80=9D entry where you can select one or more keyboard layouts. Under Xorg, the setxkbmap command (from the same-named package) allows you to change the current layout. For example, this is how you would change the layout to US Dvorak: setxkbmap us dvorak The loadkeys command changes the keyboard layout in effect in the Linux console. However, note that loadkeys does not use the XKB keyboard layout categorization described above. The command below loads the French b=C3=A9p= o layout: loadkeys fr-bepo https://guix.gnu.org/manual/en/guix.html#Keyboard-Layout =D0=B2=D1=81, 5 =D1=8F=D0=BD=D0=B2. 2020 =D0=B3. =D0=B2 22:02, Kurshakov Dm= itriy : > Hi. > > Is it possible to write an operating system configuration having two > different keyboard layouts (in my case -- "us" and "ru") with toggle > (preferely by Caps Lock) for console? > For now, I have /etc/config.scm with: (keyboard-layout (keyboard-layout > "us" "altgr-intl")) under "operating-system" declaration. Every time afte= r > logging into shell, I need to run "loadkeys ruwin_cplk-UTF-8" command. > After that, I have two different layouts and can swith between tem by Cap= s > Lock. When I changed keyboard-layout to "ru" in config.scm there was no > english layout at all. > How can I solve the problen in "right" (or "reproducible") way? > > WBR, Dmitry. > >