[Unit] Description=Idle manager for Wayland Documentation=man:swayidle(1) PartOf=graphical-session.target [Service] Type=simple ExecStart=/usr/bin/swayidle -w \ timeout 300 'swaylock -f -c 000000 -i /home/dln/i3lock.png' \ timeout 600 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock -f -c 000000 -i /home/dln/i3lock.png' [Install] WantedBy=sway-session.target