From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id INY2D0RqAmdmawEAqHPOHw:P1 (envelope-from ) for ; Sun, 06 Oct 2024 10:45:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id INY2D0RqAmdmawEAqHPOHw (envelope-from ) for ; Sun, 06 Oct 2024 12:45:24 +0200 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="j3s/hQgw"; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b="Xpq3JyH/"; 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=1728211524; a=rsa-sha256; cv=none; b=XZGxue2NIT2R19zMiz4TMOKWXPt0ApCVPZghJW6yfPBySgbJneng2Tp+NTUFnRH+qn0G9d 1ZVVyk4BiiKyUQawpVHo3dEQ1i2JUsXODhN8IjQxrni07n54NcosE0cPVu9Ugjj79CxqgB vdou9cyYcH35jvWicI7fNxBP/4iPkbti2qG8Z8mZQuMzTq9T+KldOMfXeIbLBYNya3Gqpn 00G5txbGHTA6T74DvVgdFKQvowuD/L62hDAhyi8zaYKmUJoFNfvDsaNhlDYAteAV8NKLJ0 uFD8qIdc1007vZljgsdxxzItVEgHpW9OyF3hQX05tn04yXQUv3gQQ1eEaup0qg== 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="j3s/hQgw"; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b="Xpq3JyH/"; 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=1728211524; 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: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=fDBzNE5QC/WZYUdMMA+cArHYFne2h61DrOjEtHPRr6A=; b=USN0JEE4+8NtGAIiPkfZDbpvzUvHQORyVbXcpAmcpkHdo+0ZJLu+o8lbvBKBSqwgQAXa6j BW49+CLuQ/KENjYzD7Gs0L3Qv/fh2SQIqtN4RRU7OG1XmdmecY4wMhoCbBmMGnAs8+IDxA tEKzsaYtqv3+ks3W3H1a98miqMXtuUHV4SatkpizlNswo1TJE6qpFSPdJywxJzZFKmAyzn EPgu7qlEyymHP7u85bqEBARnSWFwthybLtUZy+/3I1LgqwLkd4OtCfMEPpwoyC2OYeKPYX /cbfC8lROLIJ5i2HW3ul5tVSCt5ZvJV0fki8ocdV2i3DWl4zV2lDnzK7mF902A== 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 F1B16351BD for ; Sun, 06 Oct 2024 12:45:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxOl7-000138-QP; Sun, 06 Oct 2024 06:45:05 -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 1sxOky-00010u-G6 for guix-patches@gnu.org; Sun, 06 Oct 2024 06:44:57 -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 1sxOky-00031G-7S for guix-patches@gnu.org; Sun, 06 Oct 2024 06:44:56 -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=fDBzNE5QC/WZYUdMMA+cArHYFne2h61DrOjEtHPRr6A=; b=j3s/hQgwViMQUDsVlYG7SVpTFIsl4u109Izl2Q5ynL+VhRwb+EZwMlhsW7jCvOms5iRlRk1ZNZsudOpDlr2LIgct5G6AL+S5EJl9UKqvJqYYVcLDbeSlh8egO9pakPBapuoQiPYVHNLbx2xoJzA3SppO7nJ5E/cHkXbTa4Jb7nmZik8zb06Sv6nBwCibuDtimk4kuDK39T1muP+Kh5m2Zxhm0KUtTLQkwekBhYIDKTX68/is66tytp7ZXZHVJGdpkWq/CcH6vcVBMysYedxeqp6uYRmblNKYNJHkb6TScM6eS72hWCiuELZTMxuipExL9XULS8I6tvY2sdGfQoEjuQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxOl3-0000A7-V0 for guix-patches@gnu.org; Sun, 06 Oct 2024 06:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72714] [PATCH] home: services: Add 'home-sway-service-type'. Resent-From: Arnaud Daby-Seesaram Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Oct 2024 10:45:01 +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: "pelzflorian (Florian Pelz)" Cc: Hilton Chain , Ludovic =?UTF-8?Q?Court=C3=A8s?= , 72714@debbugs.gnu.org Received: via spool by 72714-submit@debbugs.gnu.org id=B72714.1728211496596 (code B ref 72714); Sun, 06 Oct 2024 10:45:01 +0000 Received: (at 72714) by debbugs.gnu.org; 6 Oct 2024 10:44:56 +0000 Received: from localhost ([127.0.0.1]:40243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxOky-00009Y-EL for submit@debbugs.gnu.org; Sun, 06 Oct 2024 06:44:56 -0400 Received: from nanein.fr ([185.230.78.41]:43084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxOkv-00009K-DH for 72714@debbugs.gnu.org; Sun, 06 Oct 2024 06:44:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nanein.fr; s=mail; t=1728211451; bh=HUNRTTHYl6F0a2Tey/rq2fV/ynZPhF9+sdGRo5M0bDg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Xpq3JyH/EV3So3X7UJmxaa8y0p6ON18w7q89yOKdT6I3t5AjO/aFlHQz6lzYC5jbA dGO65ZqOCegBoTFCcG6CKrpuLNeDYztYPwiaejKOQ6LsECXiH77gB1Jz70Gvc7cDEl 9N/XbnYnn+MFt+E+LY0g6+6eD8jgbbROnPezTHOJSpQ1ZZOAqrXuqGCpmmMjfVWyfv NPGayL9Cx70/p39e1WcH6tLqdnQIVmYlXDc/OXz5gpXQdjKf6GQunXRm6KrInRo8OM ScQuIhRcP6sgQyHKQl7kg9WFb2gO8HAFt72FKVLoVjWI8u1BjOZsNhsH4gdHUnP653 2YT/A7xsGMOU1r2ahaHEKKta1NFqQ1qlMTjYe5hTYepOoWtOZMpGRZ1AjD+apBgwfm gWgnWyTIhE6rRCAzpaE9Lj3KMsgW4XSysAkfekw+G2pHAUtFhAXaN5TY+5sy0FpXcQ 3NZwmmaBVcxe15Ok/RqYZ/F6fIawduZnnALCRgRyvJDqHAy/vbq/siNOD9AEzJFO0Y xG3gGB5URZhfy4EvBPeBKai7/uq0TW7V2N3dLDVZc3PMAk36wa1wdegLGWN2zzqNz/ 4DoP+e238haZCGo+IWZAWUBvBs5oT0IhLwbzG61Z7LuLpv5Brj5E7ja5zgVOXczK+N t+5XsrkD9OorMHwXebKy2q9c= Received: from cochea (unknown [212.178.179.82]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by nanein.fr (Postfix) with ESMTPSA id 3F6DA140268; Sun, 6 Oct 2024 12:44:11 +0200 (CEST) In-Reply-To: <87r08ta7az.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Sun, 06 Oct 2024 11:51:00 +0200") References: <87zfno52ig.fsf@gnu.org> <20241001221313.2490-1-ds-ac@nanein.fr> <878qv6tx5i.fsf@pelzflorian.de> <87ttdu9qmo.fsf@nanein.fr> <875xq9we7n.fsf@pelzflorian.de> <877caoewmh.fsf@nanein.fr> <87jzenr5bj.fsf@pelzflorian.de> <877camv5yk.fsf@nanein.fr> <8734l94pga.fsf@pelzflorian.de> <87wmily52c.fsf@nanein.fr> <87r08ta7az.fsf@pelzflorian.de> Date: Sun, 06 Oct 2024 12:44:08 +0200 Message-ID: <87set9y0hz.fsf@nanein.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Arnaud Daby-Seesaram X-ACL-Warn: , Arnaud Daby-Seesaram via Guix-patches From: Arnaud Daby-Seesaram 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.82 X-Spam-Score: -5.82 X-Migadu-Queue-Id: F1B16351BD X-Migadu-Scanner: mx10.migadu.com X-TUID: s9efyMAKb+AI --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, "pelzflorian (Florian Pelz)" writes: > Arnaud Daby-Seesaram writes: >>> Normally scm->go is probably unneeded here, because guile will find the= compiled >>> .go file. However program-file seems to add --no-auto-compile. Not >>> sure now. >> I do not know why the flag --no-auto-compile is passed either. >> > > I am not sure if program-file or scheme-file should be preferred. I think that in our use case, program-file is better, because it does not require to call Guile explicitly in the Sway configuration (all we care about is that the serialised script "behaves like a menu program"). >>> Another more thing. I try (bar (sway-bar)), but it prints an empty bar >>> configuration to .config/sway/config. In patch 6, you added >>> no-serialization. Did this break it? >> >> Hmmm, I am not sure. >> It is normal that `(sway-bar)' is an empty bar configuration (as all bar >> fields are now optional or empty by default). > > Ooops, the identifier is not written, of course. > > (bar (sway-bar > (position 'top))) > > is fine. Not sure what defaults are best. Yes, this is arbitrary in my code. Rationale behind my choice: At first, I wanted to make the default value match that of the default Sway configuration file. However, this would force some fields to be mandatory (namely status-command, colors and position). As users may not want to specify these fields in their Sway configuration, I=C2=A0preferred to make everything optional. > Arnaud Daby-Seesaram writes: >>>> (receive (from to pid) >>>> ((@@ (ice-9 popen) open-process) OPEN_BOTH wmenu) >>> >>> Better use @ instead of @@. >> Unfortunately, `open-process' is not exported in `(ice-9 popen)', so I >> kept @@. >> > > Not sure if exported open-pipe* would be better. open-process is > checked in guile tests, but not exported, that is right. But maybe a > red flag not to use it. I first tried to use (open-pipe wmenu OPEN_BOTH). However, I needed to close the port to wmenu before reading its output. I do not know how to do that with `open-pipe'. Best, =2D-=20 Arnaud --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCgAuFiEEMgqfJ4U0fby1t860ojLKXoMTiAwFAmcCafgQHGRzLWFjQG5h bmVpbi5mcgAKCRCiMspegxOIDOQGD/0eBMu1zXYKMPgzz6z5WjjGqYy9kcoTOgEX a6blPNGMR4VvypjQEZ3omNNJLCJOy7TF1I/lFwURSldBZCQBUV9niRfzMJRWhkbS 4zb7z269Q1otirbeBG64JtqA8p7eQcAEQg8chxREW+vIA9QquGpz0eKG9pklhGS2 A8BShbIFxTMBQrGnqvQvDYTcyC/see1RykC5+/5+GY9LUWRFtZR4ouBV76EKOLld UueY7b8jZgpbBRx8/n5658i7YCbCQhJ3FnFoYw1mNgYoY2INj/wO9ImnDnXkbSV1 dlA9GBTb+FIfV2Rfsw0HuAU6bElft0a7IlkIgvWqDYzvA9EELWrjewso8BDmVCvA BWJ/f34hJi1jN4pgQVJ6Sv5MkWUIZo/G2JX1HQZnV/BJ4xCLywH1yBI+ur3OwePS GX9Hm3iUQCiEegTCi0wePQ9sfkIF1wx5NsVBkpoZ2uT7MnWEnUbDUi/FEzwdABCs iJzCA3brRJ/mAxYSoRcIlvMWDZv2o0/SvXtfs3SwTrl3jfbTEeopLa/U1vwg2Wme bCGgs57lPhdwws605QzmKOfEd9cDnOsHIPGFdW8NPD409kVmWWcA/QclYp8P8Rn9 Kfhk7+SZNqX08nq+AAb9sG87GdHkq3ATIgtsFOG19RlnHunfjg4JPG89xHvwklsT brRS1MHRdA== =jTAE -----END PGP SIGNATURE----- --=-=-=--