Laptop Shuts Down When I Close The Lid

I am running Arch with I3 on my 2013 Chromebook Pixel LTE. I use it for college etc. But everytime I shut it it shuts down and goes back into the chromebook "OS DETECTION IS TURNED OFF" thing and I have to press Ctrl+L and boot into arch. I want it to go to sleep or suspend then go back into Arch when I open it.

Read https://wiki.archlinux.org/index.php/Power_management#Power_management_with_systemd in particular pay attention to the value of HandleLidSwitch.