User:PMay/Hibernate on lid closed

From ArchWiki

Edit /etc/systemd/logind.conf and add / change the following:

/etc/systemd/logind.conf
HandleLidSwitch=hibernate