From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 8CrSNaMLa2VecgEAauVa8A:P1 (envelope-from ) for ; Sat, 02 Dec 2023 11:49:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8CrSNaMLa2VecgEAauVa8A (envelope-from ) for ; Sat, 02 Dec 2023 11:49: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 BC6851567A for ; Sat, 2 Dec 2023 11:49:07 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=KoEQ3MGx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701514147; 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: content-transfer-encoding:content-transfer-encoding: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=YhNJMvY44LwCOvi2mhDbN0g79PqfPbtzclcEid79+mQ=; b=ly9qRrvRI+FQ93P+FR+sm+e+hUu7Yn/ftIM9yLwIG1kHmIxlOPYw8/IMuMvI/gpZlZJHuh 0FoeJpZfgtGKXpaHb2cvYF2yODNHpOqamXo7XA8QcIt5ESpWD0sWbRDHmRhklBbuFkIGfx 8xmdi87Z2PnLAMOe93IRyppU8xj+vJbQUV0beKAOm1eLTWPj+ln86ifvhBH/MUeO1I1k0U pGw3cb9oKdxLEnSaxYf80ao5XYjyKSVJoIRcdAmcKTyK6Sg3cZH1FSgpEwBJAbxQRc9/i4 NNOytCj9Gi5RXUPrzcTvmMqkMVDU1ARRzdc5MFqQuv7MvwUXPzoPfUeXc40mvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701514147; a=rsa-sha256; cv=none; b=DlJqQ6kjuFt6EipDw9Fo4oT7I2+Y0VArtAmKlryfPJJGCEI8FgYvYqZqbqXo/HLyazKQav uGn10OjFjy6h+nNOqg8mCGjZlXq+e9lJotFfFlhxoUY38cUnnOmEUn72M39YUK5110ZzEe KmXnVVygCbwXXqkEdufJLXcgSOSH3QHnDFgMyF8GX66shU6um4TpLaAiHKRwWyFa3Y04DY aQzJzek2wtOPL8jot+zznP4l7Y+CqMsFwY7/YeYMh/NZmrO2xvTacJZJliMsfArLOcqD3g /OBD/ANpehFQTQA1cmZXximgz6/Zwr0hzJu4R1jeSc+GyTeM+BW0HBhbgBisHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=KoEQ3MGx; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-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 1r9NYM-0005DH-41; Sat, 02 Dec 2023 05:48:54 -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 1r9NYK-0005D6-Q4 for guix-patches@gnu.org; Sat, 02 Dec 2023 05:48:52 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r9NYK-0005de-I3 for guix-patches@gnu.org; Sat, 02 Dec 2023 05:48:52 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r9NYT-0005xE-Pn for guix-patches@gnu.org; Sat, 02 Dec 2023 05:49:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66932] [PATCH] services: Add xremap service. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 02 Dec 2023 10:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66932 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?V=C3=96R=C3=96SK=C5=90I_?= =?UTF-8?Q?Andr=C3=A1s?= Cc: 66932@debbugs.gnu.org Received: via spool by 66932-submit@debbugs.gnu.org id=B66932.170151412822867 (code B ref 66932); Sat, 02 Dec 2023 10:49:01 +0000 Received: (at 66932) by debbugs.gnu.org; 2 Dec 2023 10:48:48 +0000 Received: from localhost ([127.0.0.1]:56728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9NYG-0005wl-CN for submit@debbugs.gnu.org; Sat, 02 Dec 2023 05:48:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9NYE-0005wX-Vd for 66932@debbugs.gnu.org; Sat, 02 Dec 2023 05:48:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9NY0-0004Bs-D8; Sat, 02 Dec 2023 05:48:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=YhNJMvY44LwCOvi2mhDbN0g79PqfPbtzclcEid79+mQ=; b=KoEQ3MGxRE8BTLvMZA85 4N4L2Lyk8GxNjprLvdoPSCewBx8dQIfSgSkFUoM7hp3oTls46Kt/i2mMFFkoptjiL2yKNz0Q1pRQi xVA2qE2MENSIJIwYhDKBipR4wUJ79QsGf0eUCKUJ6lnn9dbXsHYVwJCuASdqstB5mNzbQx0nvmmJd TnUVWW9pIf1uuIDm67n229o85tHNLuWtokiic9P8YVoCV2Vf6MVd9YLMtcmj1jN6OSZaadC3Qxu57 Rue3OUHG7kp8oz8zqm2bWv0iSJ/+bPL3OyUC7up8W/4Ure7RKXBVYayjmLmd1kZ5K1oN2FGPJxzpz GDnXVsvliMw67g==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@gmail.com> ("=?UTF-8?Q?V=C3=96R=C3=96SK=C5=90I_?= =?UTF-8?Q?Andr=C3=A1s?="'s message of "Sat, 4 Nov 2023 16:17:35 +0100") References: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@gmail.com> Date: Sat, 02 Dec 2023 11:48:30 +0100 Message-ID: <87o7f8hoch.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-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: -5.33 X-Spam-Score: -5.33 X-Migadu-Queue-Id: BC6851567A X-TUID: 5cpKuoQ7Lzdq Hi Andr=C3=A1s, V=C3=96R=C3=96SK=C5=90I Andr=C3=A1s skribis: > * gnu/services/desktop.scm (): New record. > (xremap-shepherd-service): New procedure. > (xremap-service-type): New variable. > * doc/guix.texi (Desktop Services): Document this. > > Change-Id: I76f9e238c72fb47226140e2b86dd9490cd9c9351 Nice! > +(append > + (list > + (service xremap-service-type > + (xremap-configuration > + (config-file (plain-file "xremap.yml" > +"modmap: > + - name: Global > + remap: > + CAPSLOCK: > + held: CONTROL_L > + alone: Esc > + alone_timeout_millis: 1000")))) Did you consider writing =E2=80=9Cbindings=E2=80=9D so that one can configu= re it Scheme, as is the case for most other services? (To be clear, I think we should still allow people to provide their own Yaml file as is done here.) If that=E2=80=99s too tricky/impractical, we can keep the patch as is, but adding =E2=80=9Cnative=E2=80=9D configuration on top of that would be sweet. I wonder if it would make sense, in a future patch, to also provide =E2=80=98home-xremap-service-type=E2=80=99 as a direct mapping of this serv= ice. Food for thought. Thanks, Ludo=E2=80=99.