Files
dotfiles-2022/.config/systemd/user/sleep.service
2022-07-20 14:21:29 +02:00

12 lines
437 B
Desktop File

[Unit]
Description=Sleep Manager
PartOf=graphical-session.target
[Service]
ExecStart=/usr/bin/xautolock -time 15 -locker "systemctl suspend" -detectsleep
#ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -i /home/beppe/Pictures/wallhaven-5w5pd8.png' timeout 600 'systemctl suspend' before-sleep 'swaylock -f -i /home/beppe/Pictures/wallhaven-5w5pd8.png'
#Environment=WAYLAND_DISPLAY=wayland-1
[Install]
WantedBy=xsession.target