From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YCxzANlkhWCnXAAAgWs5BA (envelope-from ) for ; Sun, 25 Apr 2021 14:47:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8DevN9hkhWBCFwAAB5/wlQ (envelope-from ) for ; Sun, 25 Apr 2021 12:47:20 +0000 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 5CEF113C3E for ; Sun, 25 Apr 2021 14:47:20 +0200 (CEST) Received: from localhost ([::1]:59820 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laeAQ-0006jD-To for larch@yhetil.org; Sun, 25 Apr 2021 08:47:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laeAA-0006j3-BV for guix-patches@gnu.org; Sun, 25 Apr 2021 08:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laeAA-000625-4a for guix-patches@gnu.org; Sun, 25 Apr 2021 08:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laeAA-0005h0-18 for guix-patches@gnu.org; Sun, 25 Apr 2021 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47994] [PATCH] services: kmscon: Add xkb-layout and xkb-options fields. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Apr 2021 12:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47994 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: luhui Cc: 47994@debbugs.gnu.org Received: via spool by 47994-submit@debbugs.gnu.org id=B47994.161935479821852 (code B ref 47994); Sun, 25 Apr 2021 12:47:01 +0000 Received: (at 47994) by debbugs.gnu.org; 25 Apr 2021 12:46:38 +0000 Received: from localhost ([127.0.0.1]:42207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lae9m-0005gO-A2 for submit@debbugs.gnu.org; Sun, 25 Apr 2021 08:46:38 -0400 Received: from laurent.telenet-ops.be ([195.130.137.89]:49706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lae9j-0005gE-IL for 47994@debbugs.gnu.org; Sun, 25 Apr 2021 08:46:36 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id x0mZ2400B0mfAB4010mZLk; Sun, 25 Apr 2021 14:46:34 +0200 Message-ID: From: Maxime Devos Date: Sun, 25 Apr 2021 14:46:25 +0200 In-Reply-To: References: <328fbd240891f63e52020fa59341c8fbf1f3bb42.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-EbUcFUzAqy9LUdaCsBRV" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1619354794; bh=9o14Y14ZPL4mSepyknZfrGBor3Tu7sMzlPbZouVZwvs=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=DHnaLRGg87itNEPs7pO33kbMu7f1QUljxgqNs5wco9U1mBHBX1MKEtHZnWR9QW+te Y9Nl8JEcGj7cC4q+mNhGpjrb2N0XDJUk+40Ej2wGgQasmmFhSehOJssw5kV3yNkceV iHAmZiCv46lvspmGAfuFiWcc5uMaPOH+WDRC0F14iS1cuQmIP+mNqfSm8oGrfxilal 7o0sXty1osGsezm3q4FnXqOot9nCOxtsL6xjJ7A/OSnwZxHOO3E8X9Jnnevz4FOmQP V95+mVGImYnNVgN2jS2xnbv705D/0PE7m8Lww2Igx434qG83ltciWOVXQgVIv6HEHg TVl/bV6OqIrbw== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619354840; 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:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=9o14Y14ZPL4mSepyknZfrGBor3Tu7sMzlPbZouVZwvs=; b=g9Gvn4XkSfUwX+HI1fvF4AZGYHRytxIW00jItRYhbVf7I1rDEjhYgj+9u6zVzhdg/Y+r7X VzJedEycmlk7P62ZITj396NSaPPo9UpnhFvCuJ7DQBF9eoBueCXevyA/Dh/em9Fi6uNqqv iRSD6AJ5lHK6pdJIV8IObmkF0QhxrLWuDZ7O6SpxgjYg517NS5xWUPU+84OlLrLLg1fMUk tw4HgYQwDZ+KnUafZcSMUM+pbqjfcHDdxK7Bzarle5QWBMgW3/hJIB3BzzEnbgiS3tz67y UPm5W7ME9L8hJhjG5jgmfLmWO7c5cihmFFNK8+vtFdD6tdSo9Jxv30xg3OkNig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619354840; a=rsa-sha256; cv=none; b=brG57f2Y0U1yoLLjq52Xb4PIaBB406NRu2W7p3Jo/vPIyR1Y4G2yzcjJQntV4XfDkB1IUi +IvMN5grZy+vjEV3XK43ROozGmDhywt0K4HYDryRCWcmL+Y5aW3lniIdhwIxnqiwzdbscV llQfbwFeyhcZCJ7aHi38USYBy+agGIGkBotd7WdPqKQ1G4L5/p+YAsZAH4YAo2Y1KBHG9V hGX6ADejhyU1PMNO+zQXOIuUhWXKOWwjhcjL4Z75Pue2LriTAuvTBqMSvDM8kB3/fODlAy wozDdVef/dEpKSAFljQJ8FUY36BX5UIwihmg1KHbHGYVpjVKabk+GvS7zahO3Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=DHnaLRGg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b=DHnaLRGg; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 5CEF113C3E X-Spam-Score: -3.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: N0nY8cDuGwT0 --=-EbUcFUzAqy9LUdaCsBRV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable luhui schreef op zo 25-04-2021 om 18:04 [+0800]: > +@item @code{xkb-layout} (default: @code{#f}) > +When true, this field be a string used for set keyboard layout used in K= mscon. > +See the @code{xkeyboard-config} package for valid layouts. > + > +@item @code{xkb-options} (default: @code{#f}) > +When true, this field be a string used for set keyboard layout options u= sed in > +Kmscon. See the @code{xkeyboard-config} package for valid options. I looked in the guix manual for ideas how to formulate this clearer. The section =E2=80=9810.6 Keyboard layout=E2=80=99 () seems interesting, in particualr the "keyboard-layout" procedure from (gnu = system keyboard). It seemed a nicer abstraction than just raw strings. An extract from the manual: Keyboard layouts are represented by records created by the =E2=80=98keyboard-layout=E2=80=99 procedure of =E2=80=98(gnu system keyboar= d)=E2=80=99. Following the X Keyboard extension (XKB), each layout has four attributes: a name (often a language code such as =E2=80=9Cfi=E2=80=9D for Finnish or =E2=80=9Cjp=E2= =80=9D for Japanese), an optional variant name, an optional keyboard model name, and a possibly empty list of additional options. In most cases the layout name is all you care about. -- Scheme Procedure: keyboard-layout NAME [VARIANT] [#:model] [#:options '()] Return a new keyboard layout with the given NAME and VARIANT. NAME must be a string such as =E2=80=98"fr"=E2=80=99; VARIANT must be = a string such as =E2=80=98"bepo"=E2=80=99 or =E2=80=98"nodeadkeys"=E2=80=99. See th= e =E2=80=98xkeyboard-config=E2=80=99 package for valid options. Here are a few examples: ;; The German QWERTZ layout. Here we assume a standard ;; "pc105" keyboard model. (keyboard-layout "de") ;; The b=C3=A9po variant of the French layout. (keyboard-layout "fr" "bepo") Could this be used instead of raw strings? > +When true, this field be a string used for set keyboard layout used in K= mscon. When true, this field is a string representing the name of the keyboard lay= out. Suggested documentation (based on the xorg-configuration documentation): @item @code{keboard-layout} (default: @code{#f}) If this is false, Kmscon uses the default keyboard layout. Otherwise this must be a field is a =E2=80=98keyboard layout=E2=80=99 objec= t specifying the keyboard layout to use for the console. *Note Keyboard Layout::, for more information on how to specify the keyboard layout. Greetings, Maxime. --=-EbUcFUzAqy9LUdaCsBRV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYIVkoRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7iSDAPsHnU+NSstDxbkqiFgwrGWd6DkL edu5BnQvxENMnW5jZQEA1UlFcBVfRLkWJLRJaizHcXiDFkH5S1QgzL41Nh/6ng4= =arVX -----END PGP SIGNATURE----- --=-EbUcFUzAqy9LUdaCsBRV--