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-10-12 03:36:37 +00:00
|
|
|
timeout 600 'lock' \
|
|
|
|
timeout 30 'if pgrep swaylock; then swaymsg "output * dpms off"; fi' \
|
|
|
|
resume 'if pgrep swaylock; then swaymsg "output * dpms on"; fi' \
|
|
|
|
before-sleep 'lock'
|
2019-04-04 23:37:38 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sway-session.target
|