diff options
| author | Mark Karlinsky <34838287+markK24@users.noreply.github.com> | 2024-10-13 15:26:16 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-13 12:26:16 +0000 |
| commit | d7156df8428cb9e6665a212e66c74bdb25842be8 (patch) | |
| tree | 11c1cb62fb6b2b93432cb519ea45a17bf107b0ab /resources/dinit | |
| parent | 33b39913c7121a6c7b112beb0e329c3e64e4f57a (diff) | |
| download | niri-d7156df8428cb9e6665a212e66c74bdb25842be8.tar.gz niri-d7156df8428cb9e6665a212e66c74bdb25842be8.tar.bz2 niri-d7156df8428cb9e6665a212e66c74bdb25842be8.zip | |
Add support for running as a dinit service (#728)
* Added dinit services
* Added dinit support to niri-session
* Replaced shutdown script for dinit with a single command execution
* Added dinit service files to Getting Started install tables
* Fix typo in resources/dinit/niri
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
* Fixed mistakes in wiki/Getting-Started.md
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
* niri-session does not start dinit anymore
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'resources/dinit')
| -rw-r--r-- | resources/dinit/niri | 8 | ||||
| -rw-r--r-- | resources/dinit/niri-shutdown | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/resources/dinit/niri b/resources/dinit/niri new file mode 100644 index 00000000..b3807b90 --- /dev/null +++ b/resources/dinit/niri @@ -0,0 +1,8 @@ +type = process +command = niri --session +restart = false +working-dir = $HOME +depends-on = dbus +after = niri-shutdown +chain-to = niri-shutdown +options: always-chain
\ No newline at end of file diff --git a/resources/dinit/niri-shutdown b/resources/dinit/niri-shutdown new file mode 100644 index 00000000..d609a933 --- /dev/null +++ b/resources/dinit/niri-shutdown @@ -0,0 +1,3 @@ +type = scripted +command = dinitctl -u setenv WAYLAND_DISPLAY= XDG_SESSION_TYPE= XDG_CURRENT_DESKTOP= NIRI_SOCKET= +restart = false
\ No newline at end of file |
