-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
add systemd service #115
add systemd service #115
Conversation
Not all sway users rely on the "flaky" `exec_always` in the sway config. For example if the app crashes (like it currently does on my machine after a suspend / resume), then `nwg-panel` is terminated and never comes back. For users using [sway-service](https://github.com/xdbob/sway-services) this would be a nice addition. Also this is the required change in the [PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=nwg-panel) ```diff diff --git a/PKGBUILD b/PKGBUILD index 26c5832..f698201 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,4 +20,5 @@ package() { install -D -t "$pkgdir"/usr/share/pixmaps nwg-panel.svg install -D -t "$pkgdir"/usr/share/pixmaps nwg-shell.svg install -D -t "$pkgdir"/usr/share/applications nwg-panel-config.desktop + install -D -t "$pkgdir"/usr/lib/systemd/user/ nwg-panel.service } ```
Please note that this was heavily inspired from mako's service file. |
Interesting, thank you. Let me get back to it over the weekend, as we're busy with an urgent job ab the moment. |
This will also require changes in nwg-shell-config, so can not be done immediately. |
Is
|
This is a |
Ah, all right. This will be useful for standalone use of panel only. Switching nwg-shell presets requires re-launching nwg-panel with different arguments. |
Yes and it's fully opt-in. Users don't need to use this if they don't want to. I haven't played around with |
You've already contributed, as the shell uses swappy by default. Many thanks! |
Not all sway users rely on the "flaky"
exec_always
in the sway config.For example if the app crashes (like it currently does on my machine
after a suspend / resume), then
nwg-panel
is terminated and nevercomes back.
For users using sway-service
this would be a nice addition.
Also this is the required change in the PKGBUILD