16 lines
439 B
Desktop File
16 lines
439 B
Desktop File
[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
|