aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-02-06 13:20:18 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-02-06 13:20:18 +0100
commita7e7d5d6975ae9626ec6cc71adf83c494468630e (patch)
tree08ca81a7dee75f25f5dfa07370c593961c57177b
parentd6084153819efa094200d850bbbcddf79876140f (diff)
Add systemd service for ntfy
-rw-r--r--.config/ntfy/client.yml1
-rw-r--r--.config/systemd/user/ntfy@.service (renamed from .config/systemd/user/ntfy.service)3
2 files changed, 3 insertions, 1 deletions
diff --git a/.config/ntfy/client.yml b/.config/ntfy/client.yml
new file mode 100644
index 0000000..f85515e
--- /dev/null
+++ b/.config/ntfy/client.yml
@@ -0,0 +1 @@
+default-host: https://ntfy.tyil.nl
diff --git a/.config/systemd/user/ntfy.service b/.config/systemd/user/ntfy@.service
index 0906333..8344170 100644
--- a/.config/systemd/user/ntfy.service
+++ b/.config/systemd/user/ntfy@.service
@@ -1,10 +1,11 @@
[Unit]
Description=Start ntfy
PartOf=graphical-session.target
+After=network.target
[Service]
Type=exec
-ExecStart=/usr/bin/ntfy subscribe --from-config
+ExecStart=/usr/bin/ntfy subscribe "%i" notify-send "$t" "$m"
Restart=on-failure
[Install]