I use enlightenment as my window manager, which has a small, unique GUI for setting up ACPID events/actions. Recently, the E developer looked at adding support for systemd / logind, to help allow those using a pure systemd system to suspend/poweroff/hibernate via. logind, without running acpid. Unfortunately, he couldn't find a great way to tie in to logind. As a result, he had to inhibit the entire system, to keep the acpid stuff working. It would be great if systemd-logind broadcasted the event for use, perhaps via. dbus?
See this: http://www.freedesktop.org/wiki/Software/systemd/writing-desktop-environments/ Enlightment should simply take an inhibitor lock on the lid switch handling which has the result that the lid switch is on control of enlightenment as long as it is running and in the foreground. Then, use the usual X keypress events to get the lid switch and handle it on your own. That said, it's probably not a good idea to remove logind from handling the lid switch, in order to make sure things are reliable, and to allow other system components to hook themselves in before the the system goes into suspend.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.