summaryrefslogtreecommitdiff
path: root/dot-config/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'dot-config/systemd')
-rw-r--r--dot-config/systemd/user/niri.service.wants/swayidle.service8
1 files changed, 8 insertions, 0 deletions
diff --git a/dot-config/systemd/user/niri.service.wants/swayidle.service b/dot-config/systemd/user/niri.service.wants/swayidle.service
new file mode 100644
index 0000000..b7316ec
--- /dev/null
+++ b/dot-config/systemd/user/niri.service.wants/swayidle.service
@@ -0,0 +1,8 @@
+[Unit]
+PartOf=graphical-session.target
+After=graphical-session.target
+Requisite=graphical-session.target
+
+[Service]
+ExecStart=/usr/bin/swayidle timeout 1200 'niri msg action power-off-monitors' timeout 600 hyprlock before-sleep hyprlock
+Restart=on-failure