From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uMKJLcmm7WbChQAA62LTzQ:P1 (envelope-from ) for ; Fri, 20 Sep 2024 16:46:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id uMKJLcmm7WbChQAA62LTzQ (envelope-from ) for ; Fri, 20 Sep 2024 18:46:01 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qGN3SRwn; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=OyZOG9WD; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726850761; 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=5LB/GqvdsJuuQeypTFb5TFkzd+8vNXgEJK21tvyFOBI=; b=oX6t3YgeuKg6Jbra60rCn4SRNR+9SJQMeTTgozuGFd0F7Wlf7ZeI6qeZFQ2lG5L9hDzq6R 1uA9VFGpsg1NppJIgqBhBec9VZ5gqQUVbQdo1c1snfEKVcrheskrfVjtmLZfAqs28Jtw6j InMWJTdkqW+Gs89KDe4z5V9mxtBovGWV2YpyC2WoKEUXKDR3cV7BBn5QW2DIXUxxAXET6O c2pO/VPwWX8BA5VEq5VrZtzJuKTb+dkVFW3YMIuB0vRFznbKISYf1z2XOlMqKs7Fl11Sy6 RznHJnt3aaGuVgK6sob0TmoAw7iGhcolx8/wujpeU4h/v57P8aIaBVQYXAOKZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=qGN3SRwn; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=OyZOG9WD; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726850761; a=rsa-sha256; cv=none; b=eg7kXAtsy+gjlvvrEZZ0kkEJPB8kHZqwr+uQec90OKCced7lNiOHuG4dCrBzOaio3yYZns BRvRTd3zbC3RE1AfwY2E9WUKizHj6vEzjqppHKrpT8UgODFTfd+A57Wyqn2HiC8Sv3RYfr 3zIhy5VKt7DXBBiI9Zk1nfAK/TziLwesKLf6e+Lu/bFLNQUv1fXdYY0kvZj3pq9EczhdXC 0OD15SeKE/ht5Nw5gZDRlnzR2oeYr7x9irY5im7coeMTDcKCekcPm/RPT5VkTTIpbV8Q8H W3yLuWqf3YwnWHrBzKuKbDmxGWIBzpxrl0BrsRe9o9jbnzGyNxE8zyr56ZBrsA== 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 62DB176C56 for ; Fri, 20 Sep 2024 18:46:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srglO-0003zl-7W; Fri, 20 Sep 2024 12:45:46 -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 ) id 1srglL-0003zT-OZ for guix-patches@gnu.org; Fri, 20 Sep 2024 12:45:43 -0400 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 1srglL-0000sX-F3 for guix-patches@gnu.org; Fri, 20 Sep 2024 12:45:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=5LB/GqvdsJuuQeypTFb5TFkzd+8vNXgEJK21tvyFOBI=; b=qGN3SRwnDhmKiuIOS48CWcTo12RXPxK0gHKFKls4zIfPPCwY0s/8F+pDUyftMPKdKJUXY2Vq8oseZg+hRjt+8hPGtt14LQqmrnnDJYcRbrnZ6rnrnb8beBI1pVUf0q5G4IGVeSoJpMMU3NoavLVQBrKPEVD+lV4gLQ6PBxiTgGbet0M5TPWxjSN9CjMrVaMQxLGuJzlK5AzQ9dRVBCWmGmTrALMe1E88AU3UWBPUW4ZB9OwWK/6mhiVVS2QaDsqXB5cG1aZix77rnYm5jIo1JnS+2sZ84Bc6CjflUziYMWU7ZoUOYvuBbqQUIRNMe0isYm+R3bnsjMWkFs0agHbQag==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srgle-0006Q2-EW for guix-patches@gnu.org; Fri, 20 Sep 2024 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72714] [PATCH v4] home: services: Add 'home-sway-service-type'. Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Sep 2024 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72714 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Arnaud Daby-Seesaram Cc: 72714@debbugs.gnu.org Received: via spool by 72714-submit@debbugs.gnu.org id=B72714.172685072824430 (code B ref 72714); Fri, 20 Sep 2024 16:46:02 +0000 Received: (at 72714) by debbugs.gnu.org; 20 Sep 2024 16:45:28 +0000 Received: from localhost ([127.0.0.1]:36197 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srgl5-0006Lm-In for submit@debbugs.gnu.org; Fri, 20 Sep 2024 12:45:28 -0400 Received: from relay.yourmailgateway.de ([185.244.194.184]:55581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srgl3-0006Io-0E for 72714@debbugs.gnu.org; Fri, 20 Sep 2024 12:45:26 -0400 Received: from relay01-mors.netcup.net (localhost [127.0.0.1]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4X9JCM4t5cz90F8; Fri, 20 Sep 2024 18:45:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1726850703; bh=8lIZxQSNUoxRgkbzN5bieOrUeTwlav/MJJFlcPK00lM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OyZOG9WDxr/f0faXuOY1IVeE7amaOOmPgxiTtc7OvHeIC7bZ96e/Drtu6u8qSJ7cy 0MsAfEUVkY0u4yBUTlAyPvnMZmvvMYVsNWUPc7N0wQ4trYN7kXoQAuWIU8ia5jK1v1 4M8T7acq6JwETH1rISengVTUiMuronSUYJHpdEwuIDzh0Kh2qaTfAjbbkISBGET/Pr BYs9n7SrlBN4DvseOJAH2LNDthgFZedEUFLDPLUpVVhtcAFjHJDux+gwUy4r7/Rfr/ jmTkuAH0ovYf9xd22A3OCAX6FIEi7J+GnNZvyeg00WfX8w98UMxe7Sz9VBsl1t24fW sJ+u0HQXJ+h1w== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4X9JCM4CBvz7x5F; Fri, 20 Sep 2024 18:45:03 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4X9JCM2CMCz8sZV; Fri, 20 Sep 2024 18:45:03 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id B008A83A99; Fri, 20 Sep 2024 18:44:57 +0200 (CEST) From: "pelzflorian (Florian Pelz)" In-Reply-To: <87plp2db5y.fsf@nanein.fr> (Arnaud Daby-Seesaram's message of "Tue, 17 Sep 2024 08:52:41 +0200") References: <1e82e473639f21a2950a0827f156437ef1bc9c48.1724081442.git.ds-ac@nanein.fr> <20240903072745.5118-1-ds-ac@nanein.fr> <87bk0qe54l.fsf@pelzflorian.de> <87plp2db5y.fsf@nanein.fr> Date: Fri, 20 Sep 2024 18:45:00 +0200 Message-ID: <87bk0icm0j.fsf@pelzflorian.de> 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-Rspamd-Queue-Id: B008A83A99 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: /h1DBdiNazMnS8Y29rDLL7JTCDZmYorzCyLHI59vd/uDD87mOqLvCkVu 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 62DB176C56 X-Migadu-Scanner: mx11.migadu.com X-Spam-Score: -10.55 X-Migadu-Spam-Score: -10.55 X-TUID: K+Vl7SaeVXfD Hello Arnaud. I=E2=80=99m still looking at the details of sway, so I could myself push your patch with confidence to guix.git, but would also be happy if others pushed it. I am already using it on my family=E2=80=99s me= dia PC now [1]. Thank you for it! Arnaud Daby-Seesaram writes: >>> The function @code{sway-configuration->file} defined below can be used >>> to provide the value for the @code{sway-configuration} field of >>> @code{greetd-wlgreet-sway-session}. >> >> Good. Even though it is a little strange that one would add a home >> module (gnu home services sway) to the operating-system configuration, >> I know no better place for this `sway-configuration->file' procedure, >> since the record is for Guix Home and being able to use it for greetd >> is just an extra feature. > Yes, I agree; I could not find a better place for this function either. > Do you think that this note is helpful, or should I remove it? > > Best regards, That one can use your `sway-configuration' enables one to configure the inputs field declaratively to use another keyboard layout in the greeter. It is a good feature. But perhaps add the word =E2=80=9Coptional= ly=E2=80=9D to make clear users do not have to provide a sway-configuration to the greeter. > @lisp > (service home-sway-service-type > (sway-configuration > (gestures > '((swipe:3:down . "move to scratchpad") > (swipe:3:up . "scratchpad show"))) > (outputs > (list (sway-output > (identifier '*) > (bg (file-append guix-backgrounds > "\ > /share/backgrounds/guix/guix-checkered-16-9.svg"))))))) > @end lisp Now that I tested this code, I notice that SVG backgrounds work only if and only if librsvg is found. Still, I think it is better this way with file-append. Perhaps add a note to doc/guix.texi here that this librsvg must be installed or propagated in the packages field. > @table @asis > @item @code{mode-name} (default @code{"default"}) > Name of the mode. > @item @code{keybindings} (default @code{'()}) These fields are missing a colon =E2=80=9Cdefault: =E2=80=9D. In other pla= ces you correctly write =E2=80=9Cdefault: =E2=80=9D. Regards, Florian [1] https://lists.gnu.org/archive/html/guile-user/2024-09/msg00041.html