Shutdown instead of sleep

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.

Thanks for your help !

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:

bindsym $mod+Shift+s exec i3lock && sleep 2 && systemctl suspend

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.