sway: Add Systemd unit for “swayidle”
This commit is contained in:
parent
537ac6f711
commit
79502c205d
1 changed files with 15 additions and 0 deletions
15
systemd/user/swayidle.service
Normal file
15
systemd/user/swayidle.service
Normal 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
|
||||||
Loading…
Reference in a new issue