
Before entering sleep mode, make sure that the swayidle is waiting for all commands to be completed. This prevents unprotected content from briefly flashing on the laptop screen when it wakes up.
12 lines
238 B
Desktop File
12 lines
238 B
Desktop File
[Unit]
|
|
Description=Idle manager for Wayland
|
|
Documentation=man:swayidle(1)
|
|
PartOf=graphical-session.target
|
|
ConditionPathExists=/usr/bin/swayidle
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/swayidle -w
|
|
|
|
[Install]
|
|
WantedBy=sway-session.target
|