From: Robby Zambito <contact@robbyzambito.me>
To: danclm@tutanota.com
Cc: help-guix@gnu.org
Subject: Re: Getting Guix to shutdown my laptop properly with Sway and no DE
Date: Tue, 04 Jul 2023 22:44:29 -0400 [thread overview]
Message-ID: <87ilaznkcq.fsf@robbyzambito.me> (raw)
In-Reply-To: <NZXxjOe--3-9@tutanota.com>
danclm@tutanota.com writes:
> Hi Robby,
> thanks for your response.
>
> Do you mind sharing your config?
> I never managed on Guix to autologin and automatically start Sway without a display manager.
>
> Daniele
Hi Daniele,
I actually don't have auto login / auto start Sway - I just login with a
TTY, and then I use `herd start sway` with a little guix home service
that I wrote:
(shepherd-service
(documentation "SwayWM")
(provision '(sway))
(requirement '(dbus))
(respawn? #f)
(auto-start? #f)
(start #~(make-forkexec-constructor
(list #$(file-append (specification->package "dbus") "/bin/dbus-run-session") "sway")
#:log-file (string-append #$log-dir "/swaywm.log")))
(stop #~(make-system-destructor
(string-join (list #$(file-append (specification->package "sway") "/bin/swaymsg")
"exit")))))
This isn't perfect (I use the system sway binary, but I use swaymsg from
my home profile - which means they can be different package version; and
herd stop sway doesn't work), but it's been good enough for me to not
care to fix.
next prev parent reply other threads:[~2023-07-09 13:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-04 19:26 Getting Guix to shutdown my laptop properly with Sway and no DE danclm--- via
2023-07-04 21:19 ` Robby Zambito
2023-07-04 22:12 ` danclm--- via
2023-07-05 2:44 ` Robby Zambito [this message]
2023-07-05 1:11 ` Skyler Ferris
2023-07-05 5:25 ` Ignas Lapėnas
2023-07-17 8:06 ` Etienne B. Roesch
2023-07-17 14:18 ` Chris Keschnat
2023-08-09 12:41 ` bug#65178: Shepherd hangs (was: Getting Guix to shutdown my laptop properly with Sway and no DE) Hilton Chain via Bug reports for GNU Guix
2023-08-13 15:25 ` Hilton Chain via Bug reports for GNU Guix
2023-08-15 13:20 ` Hilton Chain via Bug reports for GNU Guix
2023-09-02 20:49 ` Ludovic Courtès
2023-09-03 8:21 ` Hilton Chain via Bug reports for GNU Guix
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=87ilaznkcq.fsf@robbyzambito.me \
--to=contact@robbyzambito.me \
--cc=danclm@tutanota.com \
--cc=help-guix@gnu.org \
/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.