[Unit] Description=Idle manager for Wayland Documentation=man:swayidle(1) PartOf=graphical-session.target [Service] Type=simple ExecStart=/usr/bin/swayidle -w \ timeout 300 "notify-send 'Power' 'System will suspend very soon due to inactivity.'" \ timeout 315 "hyprlock" \ timeout 320 "sytemctl suspend && swaymsg 'output * power off'" resume "swaymsg 'output * power on'" \ before-sleep "hyprlock" [Install] WantedBy=sway-session.target