Received: (at 66932) by debbugs.gnu.org; 9 Dec 2024 01:56:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 08 20:56:51 2024 Received: from localhost ([127.0.0.1]:52305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tKT11-0005Av-7c for submit <at> 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 <john.kehayias@HIDDEN>) id 1tKT0x-0005AZ-TS for 66932 <at> 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 To: =?utf-8?B?VsOWUsOWU0vFkEkgQW5kcsOhcw==?= <voroskoi@HIDDEN> From: John Kehayias <john.kehayias@HIDDEN> Subject: Re: [bug#66932] [PATCH] services: Add xremap service. Message-ID: <87o71lr54i.fsf@HIDDEN> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 66932 Cc: 66932 <at> debbugs.gnu.org, =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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
guix-patches@HIDDEN
:bug#66932
; Package guix-patches
.
Full text available.Received: (at 66932) by debbugs.gnu.org; 4 Dec 2023 17:43:50 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 04 12:43:50 2023 Received: from localhost ([127.0.0.1]:35612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1rACz0-0005Jd-BO for submit <at> debbugs.gnu.org; Mon, 04 Dec 2023 12:43:50 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]:57499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <voroskoi@HIDDEN>) id 1rACyx-0005JN-Qm for 66932 <at> debbugs.gnu.org; Mon, 04 Dec 2023 12:43:48 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a1a52aecc67so333603766b.2 for <66932 <at> debbugs.gnu.org>; Mon, 04 Dec 2023 09:43:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701711811; x=1702316611; darn=debbugs.gnu.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dN89rBiC7aRqK2MC0pEonvhjgmTWSLJSYAt2NsFO4Kg=; b=gtBqtU6WFOmxU6uEFBCsdB7GPG9SmHIBg9gpn5FQOB7RiSlP/1Y2I1q9hH1cSgVzGR 2iD7Bo0N6o1suPsYD9talvjv6Lk42KtVL+7N7nv9XNzau58u9/JuT6RWaHOIZuuXGLU7 X7hajk/1qnNDxj8j2cvMkp1cGdOX1WBa/6TiB77hMTUV7EtRWHKN4jUhm9KuDLA3bWER mgOj6YXkZ109go375MmrgR76qcU7Db5XtYfu31oCNkZcdKlTq830SqxiY+4rZqpncbZT rW8TLsTetOxaJIXTouMuiMyf+4C1Hg667+ibrVcqaUmYfqXhNyV6EekwNjuzoM9Sytp/ Jj0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701711811; x=1702316611; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dN89rBiC7aRqK2MC0pEonvhjgmTWSLJSYAt2NsFO4Kg=; b=eaCa1YXx5zIJtyxhQKtV044KnO2biemvfr5Bt90ABBnZqIQwKPwmjPFlx8FPTnN1BU qFqIJ8DpyhDViqJeqvpAizfRyu8ANg+TtBLleYp/dnjYn/52D2YzEu/Rt1lC3IjQj+uh tEwy9GrNvQegIpFAtIT7a/3jePfJDAM9XQZ/cmOAAzt7mv1jroIPmTDIlDnLNL3rryY7 6CXyFSTH/Imu3oIx2dsAHPL07xLanqLfba8KNjI6jCPTWDBpwNrvKuX1hi4jTkriTI82 KlFc9zh3c32SoysN65w/UHt+h2T5p9yOmM8Wx18qkKhRv+AJbqfAzJ4x7FCsuemGsFA1 W/Ag== X-Gm-Message-State: AOJu0YwfpzT+oGNMM7sm7w84+H1ofJwXak/uSCHX1Sn9jqpktedh+mIL v9bEnIY9g7vH93uMFJ0UAN8= X-Google-Smtp-Source: AGHT+IGSOOTzdDbb8p3tCuS16CmlY5OlAnvZ/Eryk1fF18C8vrOX0m8bwTRu1XsKSWHMJ7RJ+Ez1Mw== X-Received: by 2002:a17:906:209:b0:9d3:ccd1:7604 with SMTP id 9-20020a170906020900b009d3ccd17604mr3039805ejd.44.1701711811065; Mon, 04 Dec 2023 09:43:31 -0800 (PST) Received: from localhost (176-241-15-210.pool.digikabel.hu. [176.241.15.210]) by smtp.gmail.com with ESMTPSA id v20-20020a170906489400b009adc77fe164sm5526412ejq.66.2023.12.04.09.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:43:30 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 04 Dec 2023 18:43:42 +0100 Message-Id: <CXFQHUW0P46H.3GYTY9F2MXN8T@wasteland> Subject: Re: [bug#66932] [PATCH] services: Add xremap service. From: =?utf-8?q?V=C3=96R=C3=96SK=C5=90I_Andr=C3=A1s?= <voroskoi@HIDDEN> To: =?utf-8?q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> X-Mailer: aerc 0.15.2 References: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@HIDDEN> <87o7f8hoch.fsf@HIDDEN> In-Reply-To: <87o7f8hoch.fsf@HIDDEN> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66932 Cc: 66932 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) 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 confi= gure 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, bu= t > adding =E2=80=9Cnative=E2=80=9D configuration on top of that would be swe= et. It is tricky for me and telling the truth I do not see the benefit. > 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 se= rvice. Food > for thought. I was thinking about that, but was not sure. There is a section in the READ= ME 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-servi= ce, so that would be still a manual task. Is this solution acceptable? Thanks, Andr=C3=A1s
guix-patches@HIDDEN
:bug#66932
; Package guix-patches
.
Full text available.Received: (at 66932) by debbugs.gnu.org; 2 Dec 2023 10:48:48 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 02 05:48:48 2023 Received: from localhost ([127.0.0.1]:56728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1r9NYG-0005wl-CN for submit <at> 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 <ludo@HIDDEN>) id 1r9NYE-0005wX-Vd for 66932 <at> 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 <ludo@HIDDEN>) 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN> To: =?utf-8?B?VsOWUsOWU0vFkEkgQW5kcsOhcw==?= <voroskoi@HIDDEN> Subject: Re: [bug#66932] [PATCH] services: Add xremap service. In-Reply-To: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@HIDDEN> (=?utf-8?B?IlbDllLDllNLxZBJIEFuZHLDoXMiJ3M=?= message of "Sat, 4 Nov 2023 16:17:35 +0100") References: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@HIDDEN> Date: Sat, 02 Dec 2023 11:48:30 +0100 Message-ID: <87o7f8hoch.fsf@HIDDEN> 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 66932 Cc: 66932 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Hi Andr=C3=A1s, V=C3=96R=C3=96SK=C5=90I Andr=C3=A1s <voroskoi@HIDDEN> skribis: > * gnu/services/desktop.scm (<xremap-configuration>): 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.
guix-patches@HIDDEN
:bug#66932
; Package guix-patches
.
Full text available.Received: (at submit) by debbugs.gnu.org; 4 Nov 2023 15:19:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 04 11:19:04 2023 Received: from localhost ([127.0.0.1]:35591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1qzIQR-0005ky-LY for submit <at> debbugs.gnu.org; Sat, 04 Nov 2023 11:19:04 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <voroskoi@HIDDEN>) id 1qzIQO-0005kT-S4 for submit <at> debbugs.gnu.org; Sat, 04 Nov 2023 11:19:02 -0400 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 <voroskoi@HIDDEN>) id 1qzIPi-0003lf-Uj for guix-patches@HIDDEN; Sat, 04 Nov 2023 11:18:18 -0400 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <voroskoi@HIDDEN>) id 1qzIPg-0001Bp-Ue for guix-patches@HIDDEN; Sat, 04 Nov 2023 11:18:18 -0400 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2c5028e5b88so42774581fa.3 for <guix-patches@HIDDEN>; Sat, 04 Nov 2023 08:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699111095; x=1699715895; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=STFoWm0JOnNe5L/uTnUaIJ9JXXkgxDjqHIJJQTf+WG0=; b=ekfgSsWXuyQLAzmBGilnrZ12tIHXlWd5uOY0dbeeUJ4MtIBZZFitys8dnaew0rxhZk ubG0uv+OW8Nus5M+Ev0psrHKsulWIZADC21TTillm+Kh8itT/l3jsJoBcUhdUlKNPOrB Q7qmtKyPiYJg1Vt0AqrOwGo+L/QJsQMdXS+lWCjlFY9QvAXpKXJS22pT2Oq/3NaSsAli ARGlh/aJVDuNtgysMtGGDTzTwvs+LjWMBer4qFtA6H7WpHnZWhccQi+GtT3jNEdI2+5T HatjvVEQDtc2fyFcjkf/LJZD02tmRZRTfxU49aipHmEgXEQ6DftHNfb0ngWOq/LAmJ3Z 0+Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699111095; x=1699715895; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=STFoWm0JOnNe5L/uTnUaIJ9JXXkgxDjqHIJJQTf+WG0=; b=rEMG1XXPudORTwL9H2geCveB+49gWv/ABAz4KuCwhfBbaeqnBx3YbBx+E373n3kJWm EKBDAyqy75+b/AruUbTZIl3gIij+try9r91WBWbYcRe9qiGGVkfRERkX7iiqAfjVZbVD 47Dbq4XF2iZLXI6rOcoMvy/hYJm2462PJLD8W/FGk0vFQ7KOmqmwjTBpEIoNULuOuHYi +UslW8yJIMwDxiuK7plpD4NXeIMGIs+co+Zc9hpmh3DLHRJHHjVMml5kjpLk3RF56uxw 16HvbUfCi5STaKbeXGkwsm9QeXCQcLqkYcpkw7uZFR0SfjppuorZ8r9/gyP8vsUTSxLw fdtg== X-Gm-Message-State: AOJu0YxI4fbT5rw0hzrZxiJoK4zKPywx734teqr+VLre4pR+DYDPIizh Y9Y8amvYYHsgGkUH3C2FZaCnCS8WFDA= X-Google-Smtp-Source: AGHT+IEoZxP1nn3fTwKe2OP7FRoGUNvFds4xbz9D/IqaFKGDuAb18iGmQXuCkWqozw64NKkigp6/6A== X-Received: by 2002:a2e:9410:0:b0:2c4:fe14:a85 with SMTP id i16-20020a2e9410000000b002c4fe140a85mr21527420ljh.18.1699111094309; Sat, 04 Nov 2023 08:18:14 -0700 (PDT) Received: from localhost (87-97-126-39.pool.digikabel.hu. [87.97.126.39]) by smtp.gmail.com with ESMTPSA id 10-20020a05600c230a00b004068495910csm6117100wmo.23.2023.11.04.08.18.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Nov 2023 08:18:13 -0700 (PDT) From: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= <voroskoi@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] services: Add xremap service. Date: Sat, 4 Nov 2023 16:17:35 +0100 Message-ID: <57d94dcb19152592014053ef0bc81e95e4f6b602.1699111054.git.voroskoi@HIDDEN> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::232; envelope-from=voroskoi@HIDDEN; helo=mail-lj1-x232.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?V=C3=96R=C3=96SK=C5=90I=20Andr=C3=A1s?= <voroskoi@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.0 (/) * gnu/services/desktop.scm (<xremap-configuration>): New record. (xremap-shepherd-service): New procedure. (xremap-service-type): New variable. * doc/guix.texi (Desktop Services): Document this. Change-Id: I76f9e238c72fb47226140e2b86dd9490cd9c9351 --- doc/guix.texi | 37 ++++++++++++++++++++++++++++++++++++ gnu/services/desktop.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/doc/guix.texi b/doc/guix.texi index b90078be06..e61b4e2650 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -119,6 +119,7 @@ Copyright @copyright{} 2023 Zheng Junjie@* Copyright @copyright{} 2023 Brian Cully@* Copyright @copyright{} 2023 Felix Lechner@* +Copyright @copyright{} 2023 VÖRÖSKŐI András@* Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or @@ -25011,6 +25012,42 @@ Desktop Services @end table @end deftp +@defvar xremap-service-type +@uref{https://github.com/k0kubun/xremap/, xremap} xremap is a key remapper for +Linux. Unlike xmodmap, it supports app-specific remapping and Wayland. + +@lisp +(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")))) + + ;; normally one would want %base-services + %base-services) + +@end lisp +@end defvar + +@deftp {Data Type} xremap-configuration +Configuration record for the xremap daemon service. + +@table @asis +@item @code{package} (default: @code{rust-xremap}) +The xremap package to use. + +@item @code{config-file} (default: @samp{(plain-file "xremap.yml" "")}) +Config file to use with xremap. + +@end table +@end deftp @node Sound Services @subsection Sound Services diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm index 5b79fbcda1..1cfa7c2169 100644 --- a/gnu/services/desktop.scm +++ b/gnu/services/desktop.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021, 2022 muradm <mail@HIDDEN> ;;; Copyright © 2023 Bruno Victal <mirai@HIDDEN> ;;; Copyright © 2023 Zheng Junjie <873216071@HIDDEN> +;;; Copyright © 2023 VÖRÖSKŐI András <voroskoi@HIDDEN> ;;; ;;; This file is part of GNU Guix. ;;; @@ -72,6 +73,7 @@ (define-module (gnu services desktop) #:use-module (gnu packages mate) #:use-module (gnu packages nfs) #:use-module (gnu packages enlightenment) + #:use-module (gnu packages rust-apps) #:use-module (guix deprecation) #:use-module (guix records) #:use-module (guix packages) @@ -184,6 +186,9 @@ (define-module (gnu services desktop) seatd-configuration seatd-service-type + xremap-configuration + xremap-service-type + %desktop-services)) ;;; Commentary: @@ -1863,6 +1868,42 @@ (define seatd-service-type (service-extension shepherd-root-service-type seatd-shepherd-service))) (default-value (seatd-configuration)))) +;;; +;;; xremap +;;; + +(define-record-type* <xremap-configuration> + xremap-configuration make-xremap-configuration + xremap-configuration? + (package xremap-configuration-package + (default rust-xremap)) + (config-file xremap-configuration-config-file + (default (plain-file "xremap.yml" "")))) + +(define (xremap-shepherd-service config) + "Return an <sheperd-service> for xremap with CONFIG" + (match-record config <xremap-configuration> + (package config-file) + (list + (shepherd-service + (provision '(xremap)) + (documentation "xremap daemon") + (requirement '()) + (start #~(make-forkexec-constructor + (list #$(file-append package "/bin/xremap") + #$config-file))) + (stop #~(make-kill-destructor)))))) + +(define xremap-service-type + (service-type + (name 'xremap) + (extensions + (list + (service-extension shepherd-root-service-type + xremap-shepherd-service))) + (default-value (xremap-configuration)) + (description "Run the @code{xremap} utility to modify keymaps system wide."))) + ;;; ;;; The default set of desktop services. base-commit: 9dcd8802f5bc472579f23a38dcf437f8a9ac976c -- 2.41.0
VÖRÖSKŐI András <voroskoi@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#66932
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.