From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 UFADG4a+fmcIDwAA62LTzQ:P1 (envelope-from ) for ; Wed, 08 Jan 2025 18:05:58 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id UFADG4a+fmcIDwAA62LTzQ (envelope-from ) for ; Wed, 08 Jan 2025 19:05:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pYRaGCEb; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1736359558; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=BtHm0tXcl2Y6xOdyfERDEqcXL7yqSM5438tHEFVZe+4=; b=C8wTkBoOj+KVI2GB89/scSGfL80fxo5NZaqpvHTy9X4YzoXI0UAoK7rq97gV3G48Mvse++ hm5p+fAYoCKf/nw41o+j3kQbX0iECE+AMkQ2uO3Td1mEACFcThTis7rd9dSQ6wMq3/uYnY N45b3mVbFm0npGZAfGZOze80MR6nKWb5QpQAJOKMDEzLqNjU5pFAxXj7iJN1nbpNMf0c9K Cvfkjoz/lAmajecw0P01R/ZxHEYkBibD9Ei2oTTuvfxjyuP3elQ9M1E0MEooVig6C0rXap 7SsuOp53Gx/6A0oyoEtD8g7ABxUIY8Cny4wms7Wu/TNhJA/4Vju7MVnzIdRg0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=pYRaGCEb; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1736359558; a=rsa-sha256; cv=none; b=b40+dwgl/rLIu/TGH/wsmx6VJjHByFNhOI8hbosp7OLw2ZtxGnCWZkT61TDkm16YtONW0N ejjrTZzOSSOAoldTgrC/5D7/kXaD4BbmU651zDPj/iFavcInjhNuQCmA836b3I2t9siIzg 866VpOXWev8nkntm1IO57HQm3q5LLmyYmQjSGQ1O6QnOLbKSsdTLo4XI4YZFu3RlV10SB+ B+g7UWd3PvcQ67NvbdFAjFPX6GGHTKI3VhZTod0N7xkFqBceMqT+3539zi5mHuiDK1gaku iJYI4EJW1nIoeVlkW9WWLCfqIurDsUCTVFrjWCJ6zImqmaBcH61GUAkuhtOcMg== 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 3877E1A24C for ; Wed, 08 Jan 2025 19:05:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVaQl-0003Xg-Tm; Wed, 08 Jan 2025 13:05:23 -0500 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 1tVaQk-0003XF-0L for help-guix@gnu.org; Wed, 08 Jan 2025 13:05:22 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVaQh-0002Nt-Ou for help-guix@gnu.org; Wed, 08 Jan 2025 13:05:21 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CD56A240027 for ; Wed, 8 Jan 2025 19:05:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1736359515; bh=jsWxpweLT3kigX8HRENyNbtd+21gZCRx6gYYowvPkL0=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=pYRaGCEbMXlARHg2SFdMobFmiir/57woguu6go6ICl4F/TBbg7ZrisWOyPoEOmq/W NSaCj4qaMu2Tsd45+6yie5y9rZtxgSnMw3F7vZouG3h4ts/bx5JIhhg69x9a51lTEp lTvM0REwRetMePZUFLeYKEe8w+iXXF4uff1K/8PO4WF39dr3ipZs50mQIl6DiGC4tk KCnPQXn4GynV4DrDgTtC4Py+zONuVwCczzhrBT1cymmNhVqsAKpirVYwMJxe9v5AxF d1eZfiUEm6RISbRUDoV9HC89EUdeeyr6MfVdUza2V7jJwtilDNmGMHCXbSmQNY7e/t +opf/XZVyaxMA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YSwn66KZhz6tvk; Wed, 8 Jan 2025 19:05:14 +0100 (CET) From: Fredrik Salomonsson To: jbranso@dismail.de, help-guix Subject: Re: Shepherd environment question In-Reply-To: <318957a3fcd213580542bb223cb7f6e7de7a9200@dismail.de> References: <875xmsfvvn.fsf@posteo.net> <318957a3fcd213580542bb223cb7f6e7de7a9200@dismail.de> Date: Wed, 08 Jan 2025 18:05:12 +0000 Message-ID: <87bjwhmbaf.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.52 X-Spam-Score: -8.52 X-Migadu-Queue-Id: 3877E1A24C X-Migadu-Scanner: mx10.migadu.com X-TUID: tIMc4ozK7/ON jbranso@dismail.de writes: > January 5, 2025 at 10:45 PM, "Fredrik Salomonsson" wrote: > > > >> >> Hi Guix, >> >> After reading the Shepherd 1.0.0 blog post [0], it got me thinking that >> with the log rotation etc it would be nice to let shepherd handle sway >> and the programs it launches. >> >> As right now I got a simple line in my ~/.bash_profile that if logging >> in to tty1 exec sway. And all the output from sway and its program just >> outputs into the ether. >> >> So I migrated all the programs that sway launches from the config to >> shepherd services. And made a shepherd service for sway but disable the >> auto-start for it. So that I can kick it off with my .bash_profile: > > If guix doesn't already have a sway-service (home-service or system > service), then it might be a good idea to throw this patch to > guix-patches@gnu.org. It does have a home service for generating the configuration and launching programs [0]. I do have a plan to send some patches to be able to set options for the bindsym call. Right now my thing is too hacky and specific to my use case to be in the main channel. But if I can figure out how to tell shepherd to automagically launch sway if you log in to a specific tty then it would be worth sharing. [0] https://guix.gnu.org/manual/devel/en/html_node/Sway-window-manager.html -- s/Fred[re]+i[ck]+/Fredrik/g