aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/systemd/user
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config/systemd/user')
-rw-r--r--dot_config/systemd/user/poweralertd.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/dot_config/systemd/user/poweralertd.service b/dot_config/systemd/user/poweralertd.service
new file mode 100644
index 0000000..ed4bcd2
--- /dev/null
+++ b/dot_config/systemd/user/poweralertd.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Power state change notification daemon
+Documentation=man:poweralertd(1)
+PartOf=graphical-session.target
+After=graphical-session.target
+
+[Service]
+Type=simple
+ExecStart=%h/.nix-profile/bin/poweralertd
+Restart=on-failure
+RestartSec=2s
+
+[Install]
+WantedBy=sway-session.target