Hello everyone.
I recently installed i3 on my manjaro (originally with KDE).
Yesterday I was confronted with a new problem: when I suspend my computer, it randomly shuts down.
When I installed i3wm I didn’t have this problem.
Ok guys, I found the solution. I created a shortcut and added a 2 second delay between i3lock start and systemctl suspend.
My i3 config looks like this: