jbra...@dismail.de writes:
> January 5, 2025 at 10:45 PM, "Fredrik Salomonsson" <platt...@posteo.net 
> mailto:platt...@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-patc...@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 via email to