1
0
Fork 0
dotfiles/files/.config/systemd/user/swayidle.service

16 lines
365 B
SYSTEMD
Raw Normal View History

2019-04-04 23:37:38 +00:00
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
timeout 300 'lock' \
timeout 600 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
before-sleep 'lock'
[Install]
WantedBy=sway-session.target