all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Fredrik Salomonsson <plattfot@posteo.net>
To: jbranso@dismail.de, help-guix <help-guix@gnu.org>
Subject: Re: Shepherd environment question
Date: Wed, 08 Jan 2025 18:05:12 +0000	[thread overview]
Message-ID: <87bjwhmbaf.fsf@posteo.net> (raw)
In-Reply-To: <318957a3fcd213580542bb223cb7f6e7de7a9200@dismail.de>


jbranso@dismail.de writes:

> January 5, 2025 at 10:45 PM, "Fredrik Salomonsson" <plattfot@posteo.net mailto:plattfot@posteo.net?to=%22Fredrik%20Salomonsson%22%20%3Cplattfot%40posteo.net%3E > 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


      reply	other threads:[~2025-01-08 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-06  3:45 Shepherd environment question Fredrik Salomonsson
2025-01-08 13:49 ` jbranso
2025-01-08 18:05   ` Fredrik Salomonsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bjwhmbaf.fsf@posteo.net \
    --to=plattfot@posteo.net \
    --cc=help-guix@gnu.org \
    --cc=jbranso@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.