From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KAuGFIBOVmfaQgEA62LTzQ:P1 (envelope-from ) for ; Mon, 09 Dec 2024 01:57:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KAuGFIBOVmfaQgEA62LTzQ (envelope-from ) for ; Mon, 09 Dec 2024 02:57:20 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sKesGi1p; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=ezpOjja5; 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-Seal: i=1; s=key1; d=yhetil.org; t=1733709439; a=rsa-sha256; cv=none; b=Pz5+c4nhT2UKPTGwbLGFBidDhzO+o0aAJZyCSQf0zu7LetlegjJ1fL7O/bjCTl3r/gFAQ4 5Sw0PqMjxsuuCwqyRi6qIGtulfgzuHuLC2JDtNjD/hYYKhrDYUtF6n3NQCAfn9banXT8+c /MMul9Jw7zgR1N5vjakuHetroVnwwUbabCm3ttTwK1DKFR4e1VLoMLdnSn+jnGjBblTBTn R281IpkgsOz9EgxkxbCWgKEyNi/Xctru02LB3NdnK5lFv7l2ykuDFGH7Wxe7Ki++Vt5Ncz gzjnC9MMdBj3elxLPw4gLkxD7rUGh6992d8IAXoqszxf1H1yaJC71uZQDV4H3g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=sKesGi1p; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail3 header.b=ezpOjja5; 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=1733709439; h=from:from:sender:sender:reply-to: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=SciH4kINk/xkbrhIwMy5lAD1Qwab0vMoJAXrbWZakWA=; b=BE1QxGOD2qoQVLznrLHFL9ZLGrBtvLdNQQeaKWYigpPcLaEFD7M7poeDp/h/kdwNEHKv08 ZPHfO1zS5sVV6Vt9lX7rDe+1BQMCIfzFW7JZIKpkycb/qyNRULAVmmhYu+k2NvzftafWMc cLQmFLm6AN3mQtvt/A3W89BoT87URg3+Y2wQxh0cVxbW6VHjj3AI17Y8c+OCKypX6S8ESj f7gbjRsgc9wMlbmkFIJ1Dx1+jd+5j5axq0LkoPnht8Gb5TqX7bcWvGT+LGaUf5gqk2xQqW o7u7yXBBQEXhLvf51ngs2N/Yo+/TdoBg7xS2pBPFtakfSqH74OwSpUDLD28lYA== 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 DFE718487C for ; Mon, 09 Dec 2024 02:57:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKT1J-00026W-EP; Sun, 08 Dec 2024 20:57:09 -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 1tKT1H-00026H-H9 for guix-patches@gnu.org; Sun, 08 Dec 2024 20:57:07 -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 1tKT1D-0002I6-MP for guix-patches@gnu.org; Sun, 08 Dec 2024 20:57:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:From:Date:To:In-Reply-To:References:Subject; bh=SciH4kINk/xkbrhIwMy5lAD1Qwab0vMoJAXrbWZakWA=; b=sKesGi1pDHYWtScDVZPsoaIEh4Y/jSol0XagrQu/75tsDzYJSH0tOk/AdCPTQGxcQcL/AO1WJOh8HQgBpCJffpPEIjU7mQoQDZH6V+bCtBGFHkmh4AkY3VLAPc0sJkTNbSEwl8BOAmxgGOCXJ2BiWrvG7S3LDKTSKDUJOyUxpHu70N2kW+uwk/oYYvonnfbmUC6TJjMvvu87SFpL91cgyxPLvGxAH/rrDgtGkz6wcpffQdYoiXSzKZeSZehEC0aSAlmMmfwxzjYWlVq6vtVkva02jpcPUdGrxa9ABWJk15+4nEsMFMAF7PMbj7izvVUWmWbvavP23tS14xKjhQP4FA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKT1D-0005BX-Bq for guix-patches@gnu.org; Sun, 08 Dec 2024 20:57:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66932] [PATCH] services: Add xremap service. References: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@gmail.com> In-Reply-To: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@gmail.com> Resent-From: John Kehayias Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Dec 2024 01:57:02 +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, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 66932-submit@debbugs.gnu.org id=B66932.173370941219902 (code B ref 66932); Mon, 09 Dec 2024 01:57:02 +0000 Received: (at 66932) by debbugs.gnu.org; 9 Dec 2024 01:56:52 +0000 Received: from localhost ([127.0.0.1]:52305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKT11-0005Av-7c for submit@debbugs.gnu.org; Sun, 08 Dec 2024 20:56:51 -0500 Received: from mail-10629.protonmail.ch ([79.135.106.29]:36195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKT0x-0005AZ-TS for 66932@debbugs.gnu.org; Sun, 08 Dec 2024 20:56:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733709399; x=1733968599; bh=SciH4kINk/xkbrhIwMy5lAD1Qwab0vMoJAXrbWZakWA=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=ezpOjja5XmlP5hkZtgh5ABZVbDDbC0ACJmpqeQQFjWIiNHhIAHwfOATGGxWUzkoh6 RszhVV2kk0xuETS/WuC2MipWTMbQsPbjNLy9+LMnpNrKW9FayXbT8YkTCAAL0dikO3 FOn7XNnVqLO5N4b00E5BqGJsSABZZylb5ms3XCDHgAdYdgsLqAZmCRClBK7AmoZb5y mvGDV3Usz6YYevapC3VWoWlrSmjULfdSEwDXkRAnzSj/Sa4NGmqr9XFhPdqA20IEvc nS5pERM/5rMhnuIVv9php/aXq/ajoJnP59yeEJNCdY0BNmn8Jrn66PwwjtAuKNJ6Ds UpgAgqsfQ70Ug== Date: Mon, 09 Dec 2024 01:56:34 +0000 Message-ID: <87o71lr54i.fsf@protonmail.com> Feedback-ID: 7805494:user:proton X-Pm-Message-ID: cfc3627691888b939db3f5db111fd5dd4b528b0b 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: , Reply-to: John Kehayias X-ACL-Warn: , John Kehayias via Guix-patches From: John Kehayias via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.66 X-Spam-Score: -2.66 X-Migadu-Queue-Id: DFE718487C X-Migadu-Scanner: mx12.migadu.com X-TUID: gXvjv7srNA4A Hello! Looks like this got a little lost, but would love to have an xremap service (I have a config I found which gives me nice emacs keys everywhere). On Mon, Dec 04, 2023 at 06:43 PM, V=C3=96R=C3=96SK=C5=90I Andr=C3=A1s wrote= : > Hi Ludo, > > Thanks for the reply. > > On Sat Dec 2, 2023 at 11:48 AM CET, Ludovic Court=C3=A8s wrote: >> Hi Andr=C3=A1s, >> >> Did you consider writing =E2=80=9Cbindings=E2=80=9D so that one can conf= igure 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.) > > I did consider that, but I am not familiar with guile, so that is too > hard for me and there are a lot of combinations to handle. > >> If that=E2=80=99s too tricky/impractical, we can keep the patch as is, b= ut >> adding =E2=80=9Cnative=E2=80=9D configuration on top of that would be sw= eet. > > It is tricky for me and telling the truth I do not see the benefit. > >From what I saw when I first looked at xremap, there's quite a lot of syntax and possibilities. I guess the simplest thing is just something that produces yaml from s-expressions without much logic, but maybe that doesn't gain us much. In any event, would like to have this as a starting point. Ludo=E2=80=99: had you reviewed this at all do you remember, besides the comment/suggestion above? >> 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 s= ervice. Food >> for thought. > > I was thinking about that, but was not sure. There is a section in the RE= ADME about that: > https://github.com/k0kubun/xremap#running-xremap-without-sudo > > The basic idea is creating an input group with write permission for every > input type. > I think we can not automate the "add user to input group" in the home-ser= vice, > so that would be still a manual task. > > Is this solution acceptable? > I don't know how this might work, sorry. It did seem more complicated to do this without root, I believe by design of how such input grabbing works (as one would hope, for security). A home service would indeed be ideal, along with configuring as noted above, but I think both are quite a bit more work. > Thanks, > Andr=C3=A1s Thanks for the patch, I haven't tried it but maybe I can just take the actual service part and slap it in my config... John