From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 2AI/LBfNcWXjuwAAG6o9tA:P1 (envelope-from ) for ; Thu, 07 Dec 2023 14:48:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2AI/LBfNcWXjuwAAG6o9tA (envelope-from ) for ; Thu, 07 Dec 2023 14:48:07 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E65641B30 for ; Thu, 7 Dec 2023 14:48:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b="t/UdXY7x"; dmarc=pass (policy=reject) header.from=ultrarare.space; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701956887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=M7TOg2wPDJty2Y8ywZ5MYaybUm6jqyMf9SuLCRSDsw8=; b=dlIoqCX+KuW8IV3nvhei6cYGHOGknL81GZiFlj3vtPkBNWL9K80e43RQ+BLWBpNq8Bbg8R HNZeyjluU/JYrn0wUa02OZ0hPKG588FntGOU9+jeqhytjT2kz2rUvimABqnTN9/qOG5K1c rvV8Nq2UiFcWdQi46fJXyvozHr1BwApPlghJtlXG4nnIHc/jiFtqSD8j9TKwQ5sJnjvjzo a1MP+8dLoqd6y+TGD8BZy2zVx+BvhiDX0LZ6ob3vhXFOe6jlOm0qdOXIisn+E/M6Z4PehN /rhgf9vcgWvwmSaOhhWt5lTrWD39uShvGxKYSKkVufypwyYOuy1U6XmvB19dAA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701956887; a=rsa-sha256; cv=none; b=LC3WdL2l38/oVwj8je4b+NhofYHaMdxOcxsCMYlxjQmHAU42DWRgnokGkCnsEnnglWc0oh AsxujJiDvTyWTO7E7duqilJVxfx6Cyuq1PpNoZDfQ09b7N6RCtmXi71zRJRHEDYKJWaUK0 lx8Rm2F5FT8ScUXEvZZB8FZi2jPjScBIC8jP3uJd6n++Ewmrgl4LACsdetpu1S55J2FG/G JMlvpjyx2yGy8I3ptmkMLzojOFxtpX+n2c2gQZsUYeuItO9cRNamquTZInXMw92ugk+R50 lxRCkSYgLEhtHbPNaUpN3p+bnxRkfHnXm2u2LP3ErHoO36wGaxXmMCveZzMeQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=ultrarare.space header.s=dkim header.b="t/UdXY7x"; dmarc=pass (policy=reject) header.from=ultrarare.space; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rBEj2-0004w8-38; Thu, 07 Dec 2023 08:47:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBEiz-0004vX-0R for help-guix@gnu.org; Thu, 07 Dec 2023 08:47:33 -0500 Received: from mail.boiledscript.com ([144.168.59.46]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rBEix-0003cg-Ff for help-guix@gnu.org; Thu, 07 Dec 2023 08:47:32 -0500 Date: Thu, 07 Dec 2023 21:46:37 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1701956605; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=M7TOg2wPDJty2Y8ywZ5MYaybUm6jqyMf9SuLCRSDsw8=; b=t/UdXY7x06lS0Bp7pJsEzRbLz26LVjzCRM5WQ/fI52/xpv5smQSxuyuWZGCGabaUOxOAsk XrtgB/FQ4QS9fRG60yW+qafBIwZMjq0lveWCnSmNMXcQPlj/Rb7dVLlCQ782vwjcp1toAK G2X+/l4RqMqOC+vVBE0ULR+JB2pk1HXyKgZEfHVnhakzt/ySaUJSsxK5S7wOpCnU3TwVjH 7s5mLE3NLNcN8Iz004jwiLvfUtNVP15KDln+DlYkExU9awcEkxFF4xdjfmrtaVCF9iWNo+ DSkcw0QMAIpOODtqaJy1iZwQ+Ww0SnEXHUHm2R8UbmjnNGntSPk9W7hBiqDTrg== Message-ID: <87v89am8g2.wl-hako@ultrarare.space> From: Hilton Chain To: Lars Rustand Cc: help-guix@gnu.org, Efraim Flashner Subject: Re: Keyboard layout options not working In-Reply-To: <8734wefaji.fsf@yoga.mail-host-address-is-not-set> References: <871qbyl41o.fsf@yoga.mail-host-address-is-not-set> <87h6kudyf3.wl-hako@ultrarare.space> <8734wefaji.fsf@yoga.mail-host-address-is-not-set> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spamd-Bar: / Received-SPF: pass client-ip=144.168.59.46; envelope-from=hako@ultrarare.space; helo=mail.boiledscript.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -3.65 X-Spam-Score: -3.65 X-Migadu-Queue-Id: 5E65641B30 X-TUID: zPxetTzIBUYl On Thu, 07 Dec 2023 20:28:02 +0800, Lars Rustand wrote: > > > Hilton Chain writes: > > In (gnu system keyboard), keyboard-layout is defined as: > > > > (keyboard-layout name (variant) (#:model) (#:options)) > > > > > > So the following should be used instead: > > > > (keyboard-layout "us" "no" #:options '("grp:switch")) > > I tried the above, but I get this following errror: > > -8<---------------cut here---------------start------------->8--- > error: (keyboard-layout "us" "no" #:options (quote ("grp:switch"))): invalid field specifier > -8<---------------cut here---------------end--------------->8--- > > > And for X, xorg-configuration accepts a record > > and sets option XkbLayout to the name field of that record and > > XkbVariant to variant (only when it's present). Since XkbLayout > > recognizes the comma syntax and variant is not set, the result is > > valid. > > Well, this comma syntax is precisely what I am trying to use. Note > that the "us,no" in my config refers to the list of US layout and NO > layout, not a NO variant of the US layout (I don't think there is > such a variant). The expected result of my keyboard-layout config is > that I have US layout by default, and when I hold down the right alt > key I get the NO layout. > > A similar configuration is shown in the examples under the Keyboard > Layout section in the Guix manual. > > -8<---------------cut here---------------start------------->8--- > ;; Arabic layout with "Alt-Shift" to switch to US layout. > (keyboard-layout "ar,us" #:options '("grp:alt_shift_toggle")) > -8<---------------cut here---------------end--------------->8--- I didn't check setxkbmap when sending the mail, actually its syntax is the same of ckbcomp. So you don't have to change the procedure call, sorry for my misinterpretation. The keyboard-layout field of operating-system is solely for console use (used by GRUB, and later loaded via loadkeys when booting). So you'll have to pass a record to the keyboard-layout field of your xorg-configuration.