How can I disable suspending when the lid is closes?
I never suspend my laptop. When I close the lid and the system is running, I want the screen to be blanked, but the system should run as if the lid was open.
How can I achieve this in Sway?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I'm not sure Sway handles that, so first try disabling system-wide lid actions by editing
/etc/systemd/logind.conf and see if it works (you can also use
lock instead of
HandleLidSwitch=ignore HandleLidSwitchExternalPower=ignore HandleLidSwitchDocked=ignore
sudo systemctl kill -s HUP systemd-logind - will apply these changes.