I am running Sway on Fedora 26 and want my laptop to be locked when I close my screen. I changed
/etc/systemd/logind.conf and ran
systemctl restart systemd-logind after that. However, closing the lid does nothing.
The lock program I intend to use is Swaylock and I can manually call it by runnig the command
swaylock in a terminal.
How do I make Systemd call
swaylock when it tries to close the screen (as instructed to do in