-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is systemd-notify from sway config the best way to wait for sway's readyness ? #2
Comments
|
The sway devs seem unlikely to add native systemd support any time soon. I think this issue can be closed. |
Using I bet I haven't found a way to remove I propose the following:
This means that:
This will also solve the dependency problem, where the rest of the systemd units (like |
I can provide a PR implementing the above by the way. I already use that setup in my workstation. |
@alextsits My ultimate solution was to use the "sway-systemd" project which does not run Sway as a systemd service but provides other systemd integrations: https://github.com/alebastr/sway-systemd I don't use this sway-services project anymore. If I'm running sway, it doesn't make sense to "start" it (it's already running), while "restart" and "stop" would kill my session, so I wouldn't use those systemd commands either. What I really value is to allow other systemd services to to relate to sway, and the |
@markstos "sway-systemd" look interesting, thanks for mentioning it.
I completely agree with this. This is my ultimate goal as well. I'm not entirely sure how I feel about starting sway itself as a a systemd service. I understand it has its problems, I have already bumped into some of those too. I'm still exploring and evaluating. |
At first I thought I wanted to run The approach put forth by Whoever wrote the Sway wiki page on systemd is quite clear that running Sway as a systemd service is not recommended, but then the sway developers are somewhat anti-systemd overall so I take that with a grain of salt. |
I also looked at this problem today, and I think I might go with something like this
And in the end of Sway's config
Note that pgrep has gained The other alternative I thought about is to subscribe and wait on a workspace init event via the IPC. |
Another alternative is to use sway.service:
and then: sway/config:
|
I don't like it and I would rather have the
NotifyAccess
set to eithermain
orexec
to avoid any user program write access to the service state.The text was updated successfully, but these errors were encountered: