diff --git a/systemd/user/ntfy-notify.service b/systemd/user/ntfy-notify.service new file mode 100644 index 0000000..13feda5 --- /dev/null +++ b/systemd/user/ntfy-notify.service @@ -0,0 +1,14 @@ +[Unit] +Description=ntfy desktop notifications +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +ExecStart=/usr/bin/python3 -u %h/Documents/.ntfy-notify/ntfy-notify.py +WorkingDirectory=%h/Documents/.ntfy-notify +Restart=always +RestartSec=10 + +[Install] +WantedBy=default.target