I am using Manjaro Openbox 20.0. I am trying to set up my laptop to be able to lock and suspend when the laptop lid is closed.
Currently, in XFCE Power Manager, I have it set to suspend when laptop lid is closed. And that works fine. But I want it to also lock the screen as well.
I do notice that if I change it from Suspend to Lock screen in the drop down, it does nothing when I close my lid. But I think that is possibly because I do not have
xfce4-screensaver installed maybe?
Currently, I have to lock my screen first before closing my laptop lid. Is there a way for it to execute
i3lock -i /usr/share/backgrounds/lsbackground.png before suspending when I close my laptop lid?