aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--dot_config/systemd/user/signal.service14
-rw-r--r--dot_config/systemd/user/sway-session.target2
-rw-r--r--systemd-units/user/graphical.txt1
3 files changed, 16 insertions, 1 deletions
diff --git a/dot_config/systemd/user/signal.service b/dot_config/systemd/user/signal.service
new file mode 100644
index 0000000..80d25f2
--- /dev/null
+++ b/dot_config/systemd/user/signal.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Signal Desktop (flatpak)
+PartOf=graphical-session.target
+After=graphical-session.target
+ConditionEnvironment=WAYLAND_DISPLAY
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/flatpak run org.signal.Signal --start-in-tray
+Restart=on-failure
+RestartSec=5s
+
+[Install]
+WantedBy=sway-session.target
diff --git a/dot_config/systemd/user/sway-session.target b/dot_config/systemd/user/sway-session.target
index 0b1166c..b5f06eb 100644
--- a/dot_config/systemd/user/sway-session.target
+++ b/dot_config/systemd/user/sway-session.target
@@ -2,6 +2,6 @@
Description=sway compositor session
Documentation=man:systemd.special(7)
BindsTo=graphical-session.target
-Wants=graphical-session-pre.target mako.service poweralertd.service display-watcher.service swayidle.service cliphist-text.service cliphist-image.service waybar.service
+Wants=graphical-session-pre.target mako.service poweralertd.service display-watcher.service swayidle.service cliphist-text.service cliphist-image.service waybar.service signal.service
After=graphical-session-pre.target
StopWhenUnneeded=yes
diff --git a/systemd-units/user/graphical.txt b/systemd-units/user/graphical.txt
index 93b9584..af6cf4f 100644
--- a/systemd-units/user/graphical.txt
+++ b/systemd-units/user/graphical.txt
@@ -4,5 +4,6 @@
cliphist-image.service
cliphist-text.service
display-watcher.service
+signal.service
swayidle.service
waybar.service