1
0
Fork 0

sway: Add Systemd unit for “swayidle”

This commit is contained in:
coderkun 2020-07-04 13:35:20 +02:00
commit 79502c205d

View file

@ -0,0 +1,15 @@
[Unit]
Description=Idle manager for Wayland
Documentation=man:swayidle(1)
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/usr/bin/swayidle -w \
timeout 6000 'swaymsg "output * dpms off"' \
resume 'swaymsg "output * dpms on"' \
lock 'swaylock -f -s center -i "~/.config/sway/lockscreen.png"' \
before-sleep 'swaylock -f -s center -i "~/.config/sway/lockscreen.png"'
[Install]
WantedBy=sway-session.target