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 WA3GEEay/WY6OgEAqHPOHw:P1 (envelope-from ) for ; Wed, 02 Oct 2024 20:51:18 +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 WA3GEEay/WY6OgEAqHPOHw (envelope-from ) for ; Wed, 02 Oct 2024 22:51:18 +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=YRjPciqA; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b=CNS3Aiu8; 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=1727902278; a=rsa-sha256; cv=none; b=e1eP4g7MaK94rjkddjj3tHDi9Nn9M9IirkY3yvFNfmQBjtbuBrDO19c05XL1Cn0D82ahsp hZ7aKOPqv1l2ueHAXxyPd8xZwq+RX5BV6pk4iUI4rnunko34om8zDhnUU493iPJrtv1n0i 9cxVE0hVqnmTriHbcHQEEWWFRNP56CcimqWid/bTP25+dIrBn3lTtZIG1GhwVioVy2XdUI IR+UnZubqweJiJ2bapXnf6XtrDCDqaZDh5465iydCqh6Kj9pJSg5tT07jJAZGM1g7d8XER JmpGJMM4OEcmqNII0DpZOafc/M6bFKgwIroe/qqiliai7Qcq+Q1YTK5peXV8fg== 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=YRjPciqA; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b=CNS3Aiu8; 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=1727902278; 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=tOU+VkVfIoyN/HRuet/fZ3rV4yWDrgQt3KnOrSJHVxA=; b=UVEtp4e8v5yXIDoWDoiZ3YYvkc4Z+0/sv5C9IRyxTcksbLrx8yC8DeH91ua9XjKGRwqOCD oKvVA73pRL+iqa0egfSPmuvFnTagDKuPGAOQ1PKpU51rEPsufoLBgKpdt27fDHzHDHMdlV i1Vtf245mqiD7gxzl1px7nmYQCUWIrjjfh1QjSWzp4iYzgttSL9P0JC64F6iwtEx3Z3Dcq 3j/ki90WcOh5puJVtkNgILAFziQ8YdoDZo/g8DG5RAqo9BYxkTH/H7qRK5Tix536JeYHzk ehTQTPVbw4quB/y7GfGeOJK4u2b7kAgboJuQXoJUguLCNwk670p4VCthhHmZEg== 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 A59B5843E2 for ; Wed, 02 Oct 2024 22:51:16 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw6JN-0004MR-8J; Wed, 02 Oct 2024 16:51: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 1sw6JJ-0004MB-KM for guix-patches@gnu.org; Wed, 02 Oct 2024 16:51:01 -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 1sw6JJ-0001HY-Bk for guix-patches@gnu.org; Wed, 02 Oct 2024 16:51:01 -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=tOU+VkVfIoyN/HRuet/fZ3rV4yWDrgQt3KnOrSJHVxA=; b=YRjPciqAgIMlMfvGo5KYh2ScgK/Krv5nLez1NyvdmfhgyHdmdpEAOZGs7pEXuECixDsNfHPgIwPm2VBnyBhVzt8r2inkjFL9ufoppY2PpT79ZHBudO5Pze9xT0XD8ZVqt/ebPbOLNImNXe6VP7tYQjqCYIHSBxYaCGvnP5jv5JoEaEvnNCcEC1ZyhV5RwCu9L83JNb5zp1NoVArYtxaKTRDESlav2v+PwKRBd8J0TYd4gXsJaELLiNWaFnCj+U4H4+0pAKgRFwUDRF4PNH82j16ONVvMsyxaTieehR/f+1vHto5MqAWgTillyKKxWWmY2asNSLiR8WvBHWvEfuvkOg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sw6JK-0000N0-64 for guix-patches@gnu.org; Wed, 02 Oct 2024 16:51:02 -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: Wed, 02 Oct 2024 20:51: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: "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.17279022281339 (code B ref 72714); Wed, 02 Oct 2024 20:51:02 +0000 Received: (at 72714) by debbugs.gnu.org; 2 Oct 2024 20:50:28 +0000 Received: from localhost ([127.0.0.1]:59383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw6Im-0000LX-7p for submit@debbugs.gnu.org; Wed, 02 Oct 2024 16:50:28 -0400 Received: from nanein.fr ([185.230.78.41]:38214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sw6Ik-0000LD-HC for 72714@debbugs.gnu.org; Wed, 02 Oct 2024 16:50:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nanein.fr; s=mail; t=1727902218; bh=nelJHmd1VS1epnNy+6oEYqy/NDiu2/sh8F88DSAiYmM=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=CNS3Aiu8uoHjsyTEZtsWFRRO/9zKWdjdzbciSfoJmv4rUU8vtjLOYjwa/lRSw3ojW pT8QCzpmKdtBDr0RsC1DXhg8W2Re06S8uU5yBbY6m8PqaJHmMpbuvCPhufkHUuaDPt zi7CxX/PikgYS89bkTL6kqPqraC5GXUANENvI0WtmYxKqonVkgNYfVO3kn+49sW5ec W5t0eZWlXvdyd2USMiDqtO2Ync+1VS3S+Yj2N/Hz92okZFX0ZIFkpUa1c1lMk6POAR sxchyPZBWxp/wRNPq4inb7hsnokOu+NaZrqmkrI7TyEj2b2fcRZjdiU3BgpvwjtnU8 Ozh8b4CaoJG9LwIEdHWnLqGkh0qUMdVrtym4p2m63ARn2j/UL3KamOUYllzpT4fVT2 198dW+PHgwOal7J57VfyZgGiSKmngQuVhKX0tED988GI8bbHVk6Mcpcl+Q38OWDY7d j97X13ZbR6BA/7pzxMXUFbghKD8fdyOJ7L5mtcwYXJdcA7honNm8UN2ZT1wkKBeajl 60VeKmqYMHVAAXtJGSuTLGCt3a1r0Pszdkg5ALgi0ZK+s26XdXYg+CC8cmJAB9HYqq ZmEiajoaXhrMNT/6+i3KZJwOqkyI0QcciiizGnZ96PF+KCVh33HVyH6HcC9PUuFBaA DoceyL1HY1AH4qbPYUcOjadk= Received: from cochea (wg.nanein.fr [IPv6:2a0c:700:12:50:1::109]) (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 ADF82140266; Wed, 2 Oct 2024 22:50:18 +0200 (CEST) In-Reply-To: <878qv6tx5i.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Wed, 02 Oct 2024 16:08:41 +0200") References: <87zfno52ig.fsf@gnu.org> <20241001221313.2490-1-ds-ac@nanein.fr> <878qv6tx5i.fsf@pelzflorian.de> Date: Wed, 02 Oct 2024 22:49:51 +0200 Message-ID: <87ttdu9qmo.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.87 X-Spam-Score: -5.87 X-Migadu-Queue-Id: A59B5843E2 X-Migadu-Scanner: mx10.migadu.com X-TUID: N12/0q5vlZ28 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Florian, "pelzflorian (Florian Pelz)" writes: > Arnaud Daby-Seesaram writes: >> +(define %sway-default-variables >> + `((mod . "Mod4") >> + (left . "h") >> + (down . "j") >> + (up . "k") >> + (right . "l") >> + (term . ,(file-append foot "/bin/foot")) >> + (menu . ,#~(string-append >> + #$dmenu "/bin/dmenu_path | \\\n " >> + #$wmenu "/bin/wmenu | \\\n " >> + #$findutils "/bin/xargs \\\n " >> + #$sway "/bin/swaymsg exec --")))) > > After I added new packages to home-environment=E2=80=99s packages field, > dmenu_path does not list newly installed packages for me, because it > is a shell script which needs a program called stest in PATH. > > Now the wmenu_path I talked about earlier appears to be an invention > by the OpenBSD people that does not need stest [1]. > > Perhaps for more hackability, we could deviate from upstream and put in > a call to guile with a Scheme script in a computed-file that opens a > pipe to/from wmenu and does the same as dmenu_path without cache only on > ~/.guix-home/profile/bin. Yes indeed. Do you think that the Guile script should replace all of "$menu", or just the dmenu_path part? On this topic, do you know if there is a built-in way to write `find=C2=A0-maxdepth 1 ...' in Guile (without calling `readdir' manually)? > only on ~/.guix-home/profile/bin. What is the rationale for restricting the menu to this directory (and not all directories in (filter directory-exists? (string-split (getenv "PATH") #\:)) ? > Or change the dmenu_path program with `substitute' to use the absolute > file-name of stest. I think that the Guile script might be simpler. By `substitute', do you mean in the package definition? This does not seem necessary, as people installing dmenu have stest in their profile. "pelzflorian (Florian Pelz)" writes: > There is no bg anymore. > [...] > Should be point-y. The point-issue was introduced in the v6. I apologise for those issues that I bring in new patches... Thank you for catching them! In my local files, I have also switched from using `open-output-file' to `call-with-output-file'=C2=B9 and reduced the number of redundant calls to `make-string'. =C2=B9: in previous patches, I never called `close-port'. "pelzflorian (Florian Pelz)" writes: > Hi Arnaud. I still have not tested nor reviewed all features, but > some comments: Do you want me to send a v8 with the above fixes, or should I wait until we change the content of the "$menu" variable? Best regards, =2D-=20 Arnaud --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCgAuFiEEMgqfJ4U0fby1t860ojLKXoMTiAwFAmb9sfAQHGRzLWFjQG5h bmVpbi5mcgAKCRCiMspegxOIDEgOD/9+4WPKHxyKSNdj7PIzPDluIpfEVYONcYeP UXYtnDx1hxuSMollWcHLn3XOrwthCymKnd+O0Q/+pXQdKMA/v1Jz2SCwg0mG3U1o fbAAq7DXtzrB6g7WLSPsFNHAIzwYuFVtH2zzzeahTI1KnM+/yi9qwDfL/S6rhMKr wcZaH8OT9kbzBnje0fACYa3o4xASz3wfskSRQIeP9O9NaWLyQsYdDq5V2hQccOM0 YbmdmtA338ASW6UCFTRG6vjQZ1JzAzT2PNJEmw6a+fgy/i7IpIfVUoVLwZ61Muu+ AlF71idH2LQBNTmD1I8cLDefSZs7ByMCxYAmAzPUwpYll1FQ6JCTv6urpgAp1HLz E8P1HA/iSh5tS4xzB7Y2y0ClpMdvhzSuOQX3SZsHVB8T2OD4qSx3Lb8vB/GGxpWu LStwp/myLpIp7BSzV3DGSaE2FuAIkwpJt9SkOHWw8elUQbwkzBCM1sRbiEmtf4yS haZqK87sTIEj/yRRN0eegBql9/9qnpLP5fwlfa7SgKOZ4wdO5nLjeYP/KvTlaxEW YL7/EOmukgFQrOlZqQEQb2xZaP0KvPHEQ3h0JT+e2NujwlOpjntM94S9JsGM7grW sp9QztF49oJ0qBxWmyHhhUgRojtYM3dSnGIDbIZVJ8imI1sJgQuQdulNPAjKfhpa wWHGLIy5Sg== =uBH9 -----END PGP SIGNATURE----- --=-=-=--