aboutsummaryrefslogtreecommitdiff
path: root/resources/dinit
diff options
context:
space:
mode:
Diffstat (limited to 'resources/dinit')
-rw-r--r--resources/dinit/niri8
-rw-r--r--resources/dinit/niri-shutdown3
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