I just installed Manjaro with OpenRC and i3 window manager. I want my screen to lock whenever I suspend. in ~30% of cases the screen doesn’t lock. And in some cases my computer wakes up from suspend, then it is unlocked for a few seconds before it locks. This seems like a huge security problem. I also got the problem that my screen locks after 10 minutes of inactivity and I cannot figure out how to turn that off, I guess I kill two birds with one stone here.
I wanted to solve this problem and everywhere I read about dm-utils which apparently offers scripts which I could edit. So I guessed I could just edit these scripts and lock before suspend. (so far the plan) Turns out I do not have dm-utils and I can also not install it because it conflicts with elogind. I couldn’t find any info how or if I could do something similar with elogind. I am really confused because the OpenRC wiki page of manjaro says “To suspend and hibernate via the command line, pm-utils can be installed.” Also the gentoo wiki says “elogind is the systemd project’s logind”, but this isn’t systemd.
I would like my screen to lock when I suspend. Does anybody have any ideas?