diff options
| author | 2026-05-13 13:43:26 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:26 +0100 | |
| commit | 370139e565363e2929a3b98dbf43a8bca338114c (patch) | |
| tree | 7c2bce2ca9d2482765d9d4e85cb2afb0c437735f /dot_config/systemd/user | |
| parent | 50bcdbbe80c35458c1218c2abd0f7b0a4fb203f1 (diff) | |
| download | dotfiles-370139e565363e2929a3b98dbf43a8bca338114c.tar.gz dotfiles-370139e565363e2929a3b98dbf43a8bca338114c.tar.bz2 dotfiles-370139e565363e2929a3b98dbf43a8bca338114c.zip | |
feat(sway): autostart Signal via user systemd unit
Sway does not honour XDG $HOME/.config/autostart/, so the in-app
'start at login' toggle is a no-op. Use a user unit wired into
sway-session.target with --start-in-tray, matching the existing
waybar/swayidle/cliphist/etc. pattern.
Diffstat (limited to 'dot_config/systemd/user')
| -rw-r--r-- | dot_config/systemd/user/signal.service | 14 | ||||
| -rw-r--r-- | dot_config/systemd/user/sway-session.target | 2 |
2 files changed, 15 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 |
