summaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user/nheko@.service
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/systemd/user/nheko@.service')
-rw-r--r--dot_config/systemd/user/nheko@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/dot_config/systemd/user/nheko@.service b/dot_config/systemd/user/nheko@.service
new file mode 100644
index 0000000..656f333
--- /dev/null
+++ b/dot_config/systemd/user/nheko@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Nheko Matrix client (%i profile)
+PartOf=graphical-session.target
+After=graphical-session.target waybar.service
+ConditionEnvironment=DISPLAY
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/flatpak run --die-with-parent im.nheko.Nheko --profile %i
+Restart=on-failure
+RestartSec=5s
+
+[Install]
+WantedBy=sway-session.target