From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kurshakov Dmitriy Subject: Two keyboard layouts with toggle in console Date: Sun, 05 Jan 2020 21:46:06 +0300 Message-ID: <4331671578249966@vla5-c5051da8689e.qloud-c.yandex.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42463) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioAul-0005Rt-Cs for help-guix@gnu.org; Sun, 05 Jan 2020 13:46:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioAui-0003gJ-E4 for help-guix@gnu.org; Sun, 05 Jan 2020 13:46:13 -0500 Received: from forward400p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:105]:42395) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ioAuh-0003d1-Tb for help-guix@gnu.org; Sun, 05 Jan 2020 13:46:12 -0500 Received: from mxback10q.mail.yandex.net (mxback10q.mail.yandex.net [IPv6:2a02:6b8:c0e:1b4:0:640:b6ef:cb3]) by forward400p.mail.yandex.net (Yandex) with ESMTP id DD12F1BC0DE1 for ; Sun, 5 Jan 2020 21:46:06 +0300 (MSK) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org 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 after 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 Caps 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.