How to suspend only when off AC power
Works on Archlinux using systemd 239.370-1:
[hendry@t480s ~]$ grep -v ^# /etc/systemd/logind.conf
[Login]
HandleLidSwitchExternalPower=ignore
Works on Archlinux using systemd 239.370-1:
[hendry@t480s ~]$ grep -v ^# /etc/systemd/logind.conf
[Login]
HandleLidSwitchExternalPower=ignore