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 \
|
2019-09-17 23:04:24 +00:00
|
|
|
timeout 1200 'lock' \
|
|
|
|
timeout 1210 'swaymsg "output * dpms off"' \
|
2019-04-04 23:37:38 +00:00
|
|
|
resume 'swaymsg "output * dpms on"' \
|
|
|
|
before-sleep 'lock'
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sway-session.target
|