From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id MNcdMFsf8GYICwEAqHPOHw:P1 (envelope-from ) for ; Sun, 22 Sep 2024 13:44:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MNcdMFsf8GYICwEAqHPOHw (envelope-from ) for ; Sun, 22 Sep 2024 15:44:59 +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="pebv/G1f"; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b=KQNxpqq2; 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=1727012699; 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=h1PhZLbYdiu0HYCYxOdEaRTa4N6Ut4HGaayC1kxOAdk=; b=ehF2JqOovje5PRIFXkAHYzW4riYwXDpWGcjNakfV+c/OJpk+bOr73R8EQ5ZDYTPIC6tLVU 15oNZFn43RqDJEqpuIx1R89FE16KqunJUGwiDjyschbYXmToAGhtBw8xmXi2Pk/BJqGYqM usAsaVh6h6EvlokLLgEbstdUJd5dMeyNhW6q32N5KSoBzF97V6gF5Rd4mt3vcbokU/CM53 o5kSNWliE6x49K1+zXAOodTOmRmsxjIZu+DpLPHWciwyWqaEuoaVRDGDPRttsWX7JrdJ8R 6Z2pOaq4zaIFsRMpbqzy3SBMN5cSd5egtj6RY5YUgV4nZ54QUn8YZ85ImViocQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727012699; a=rsa-sha256; cv=none; b=C3m0NPEXpAfYEVAQfpwhi1DslI77UJ/ODkUSOt4fg2lKK5KdBbzaXmI6mWojrkoZ8Ff+VF +th3JLTwVkUPfIpgK+Gcu28Cm9ejnUmcgWl1rtTbQBUm1Y9WQTRySFbnSDzoculmFyuAhv qvtktYi/Ssl9HX2Rq82Q3fE6P2Oxx8eSv5IRQBbGri817nKiqSzJRmXOnHsi8qubBeGfXP D93fovCMSbtsPmxF+wLz3GNBqxOkJUAA3unXt+eKQ7K5GbF3eiAG+gWLa/qR2AiMb09XV8 z4xHiFAJU/02cHWiP0V+2bl5DlIULXVaiWWmxKLeYRFJoPY2nVDhmWQveec8Lg== 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="pebv/G1f"; dkim=fail ("headers rsa verify failed") header.d=nanein.fr header.s=mail header.b=KQNxpqq2; 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" 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 4E77959D29 for ; Sun, 22 Sep 2024 15:44:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssMtG-0007yu-No; Sun, 22 Sep 2024 09:44:42 -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 1ssMtE-0007yb-Ty for guix-patches@gnu.org; Sun, 22 Sep 2024 09:44:41 -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 1ssMtE-0004JZ-Lg for guix-patches@gnu.org; Sun, 22 Sep 2024 09:44:40 -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=h1PhZLbYdiu0HYCYxOdEaRTa4N6Ut4HGaayC1kxOAdk=; b=pebv/G1f8pclOw0kG2I6JAytHRPaqgfP6wyrbswH2O1uSYvScnJXuRuzTSC23mI72jIMDkFuLj3Bx2rQ7O1h/b89g9BPkRGP/KNBqFzD550kUBNFnq/fWCHmLGW9o42fxXpL88eYMHKrx33wf0hdmy77q9X6/wMKEapjFDKMpymdC5cUYG4/IX39kA/eY+Oji67fQLv4KhTK+WNYAxYlEM4QR/1gnOa23Hq5VA19rUqD/Tla79li+ib3Z3dmigXEy5JqrU3zSwX9oNxgnbq6Lll/pOrEGJSnB+BgoeZsuS2b1jwPkebq9IIsDQ/fxniqbmO8FZrpm9H3s6WY4jsiPA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssMta-0003Za-8P for guix-patches@gnu.org; Sun, 22 Sep 2024 09:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72714] [PATCH v4] 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, 22 Sep 2024 13:45: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 , 72714@debbugs.gnu.org Received: via spool by 72714-submit@debbugs.gnu.org id=B72714.172701266913663 (code B ref 72714); Sun, 22 Sep 2024 13:45:02 +0000 Received: (at 72714) by debbugs.gnu.org; 22 Sep 2024 13:44:29 +0000 Received: from localhost ([127.0.0.1]:41094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssMt3-0003YH-26 for submit@debbugs.gnu.org; Sun, 22 Sep 2024 09:44:29 -0400 Received: from nanein.fr ([185.230.78.41]:57654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssMsz-0003Xw-Rv for 72714@debbugs.gnu.org; Sun, 22 Sep 2024 09:44:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nanein.fr; s=mail; t=1727012637; bh=hCQYFi/YGR0SAsxl8r3Dlf0FfTVe0iX/G5z9PgaU4k4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KQNxpqq2kMZlBjLdrEt6SpS//znwPsnECfTsS7fho5APNJ7tx9uYBd2DjG/HpZgzd P0AP+Tio0luGkgItASjzFeM2MMJNaAt2sz29JyuTF76cNl/CKZs+NGKrwayb3uk/qV +zdPRJHaVtYQaGeGnyfiKXF1/g1jBhs0gntT5cS9N0VWs4Xd3CS7o1yBdjkLiYhhfJ KpYjNk5Qm0vwOKxeAE/2Ch7NjdhYb4CH8MIppRbD0OtOiu5+zs/hnIILRrFPz+CuTt bTPLy0A4O/COkO68Z7uNFJ4+hIZJCltBU7IxmovE9pKm544IynjTawdAzjeWsvY0CF siABVMqCCbKuhaElInW8WvT2vHuF9XcoSqB1PMiqyr4ObXzqrPezliKU6w0J1i6PV6 2ihLQcEbXEDIx3xBecOql97Oe20eR67Zucs8BZVQ1Nmuj7umplZdgCY4pw+9HWRSbV ovglpqyP5Rsog3zvZ73GoIzUiYZcPMUcbj+pD56lTdghXSLmFvtA0P/qTzXEXusf92 0WfCzz3P3D1YMS7hkYzWSYCsvgE/9PFbDrp2oZsyzn+80KOf8iy0QomDzCt2iHKOYK i2520Pfg8M9v4nUJv68sVas+9rc9T3fyN0XJ3GrbyZcX/yuuTzkIxr1+tB/p//CxPL b2yLbPV37aVyxkTHb1tGMFoA= Received: from arnaudGuixPortable (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 312F5140266; Sun, 22 Sep 2024 15:43:57 +0200 (CEST) In-Reply-To: <87bk0icm0j.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Fri, 20 Sep 2024 18:45:00 +0200") References: <1e82e473639f21a2950a0827f156437ef1bc9c48.1724081442.git.ds-ac@nanein.fr> <20240903072745.5118-1-ds-ac@nanein.fr> <87bk0qe54l.fsf@pelzflorian.de> <87plp2db5y.fsf@nanein.fr> <87bk0icm0j.fsf@pelzflorian.de> Date: Sun, 22 Sep 2024 15:43:45 +0200 Message-ID: <875xqn4xda.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: -7.01 X-Spam-Score: -7.01 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Queue-Id: 4E77959D29 X-TUID: gqbemjExV/Rr --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Florian and Hilton, Thank you for your words and reviews! It is nice to know that a few people are interested :). > 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 Nice, NB: it is also fine=20 Upon reading the code again, one point is still unclear: the list of packages that I include in user profiles seems a bit random :/. =2D sway, swaylock and swaybg: useful to launch some commands manually (including swaymsg). =2D waybar, dmenu and bemenu: do not seem necessary. I will probably remove them. =2D dbus, xdg-desktop-portal and xdg-desktop-portal-wlr: may be interesting to have. On my laptop, screen sharing=C2=B9 only works when xdg-desktop-portal and xdg-desktop-portal-wlr are in the same profile=C2= =B2 (associated executable files end up in ~/.guix-home/profile/libexec/). =C2=B9: I do not have a fully functional setup for screen sharing yet (it does not work in all web browsers). I (or someone else) should probably add elements in the default `execs' / `always-execs' fields if/when they have a working setup later. NB: this should not be a road blocker for the current patch IMHO. =C2=B2: I do not know if that is a hard requirement or if my issues are related to something else. =2D slurp and grim: screenshots (+ screen selection when screen sharing). I will probably define a new variable `%sway-default-packages' containing the above packages (minus waybar, ...). WDYT? Hilton Chain writes: > Can `sway-configuration-bar' be optional? In my case it's not used. Yes indeed. In the v6, I will try to make a few fields optional, and also avoid empty groups in produced configuration file. > 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}. [...] > 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=9Coption= ally=E2=80=9D > to make clear users do not have to provide a sway-configuration to the > greeter. Indeed; I will try to phrase this properly. >> @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. I will add a note in the next version of the doc, to hint towards the two solutions to use a svg file: adding librsvg to the profile, or computing the png and put it in the store using a "computed-file" in the configuration (as in the second version of the patch). >> @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 p= laces you > correctly write =E2=80=9Cdefault: =E2=80=9D. Got it, thx! Best regards, =2D-=20 Arnaud --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCgAuFiEEMgqfJ4U0fby1t860ojLKXoMTiAwFAmbwHxEQHGRzLWFjQG5h bmVpbi5mcgAKCRCiMspegxOIDJ0LD/9J1qsU6TzAroRjZMrYHZB0RJ0UrthVqqtk 84ZMqX7hOUnZmpaxuMQGcuLHtgSJaR9oEjlKuG1mr9DlPkazPo0FLnYyAqwdnJb5 wJbahFcUuHdMtAG3FFJmUhriMVpXHnCRqCQP2KompuZZ2REjM7krTdloAXvKVtwC 8n1WD5JPdCWQ8RvlZ2oBeoYUk9KfG955020ygOdgckuSmQPhjLtUwElDUPYIMwfS AvwTOkJ3TNDId0ERvzHu2hjZSOmVdWe/GyWv726n1krzsYFtJUvIO8SeBdwYvkYe LpVnAiF14547nyonGqClHBjZgsXjbnwAzu5WBEmXpLth4wLUcLtUR9TaTMHsZZBh vx5Q1AmgTTamM2kgMxfHMe2Of+jcM4dlCyFZCHsoGnHEdunokaVNe42xG90OB8lO QWGvEpufABiyZGQFoTPrSVAjjxvkqvRd0+YiSem88o+5o3qV8pC005/Bpdq4I8HG UPoXjgcmbqVI7gnofXuclUVNxwE7wyVuVvYjmEk3NkVHszGWV2GdPIcHYGM4MSHx +wszNPizFBqxEVwxo96deNKlH0S97+VCvzvdHFXKEN7RKE+eToMauJlMvm4mFLlA 5J+JN7T2xvVXN5CuwIQWs7+JcDdYmXF7HAKuDVXCl1rIAp3funXDqRr8NhYSd2Jk 1qQROLWCVg== =12ki -----END PGP SIGNATURE----- --=-=-=--