LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   screen lock after inactivity and suspend in artix openrc with herbstluftwm (https://www.linuxquestions.org/questions/linux-newbie-8/screen-lock-after-inactivity-and-suspend-in-artix-openrc-with-herbstluftwm-4175687567/)

screamin4vengence 12-27-2020 10:34 AM

screen lock after inactivity and suspend in artix openrc with herbstluftwm
 
Hello, I'm almost done with my first window manager setup. This is the last piece that needs to be done.
I use physlock to manually lock screen. And I use the command "loginctl suspend" to suspend.
I've already check session lock on the arch wiki, but it assumes that you use systemd. Quite confusing to me.
So what I want to do is that the screen will lock and go blank after inactivity. Also, I want it to lock after my computer wakes from suspension.
I really appreciate anyone who can help me on this. Thanks!

michaelsavage 12-27-2020 12:13 PM

It's is hard to understand what you want. Please explain what you have already completed and what you want for the end result in a clear matter. People are more willing to help if they understand the issue. What is your OS? How much RAM do you have? What is you swap space? That is some of the information needed.

ondoho 12-27-2020 03:04 PM

screen lock after inactivity and suspend in artix openrc with herbstluftwm
 
Quote:

Originally Posted by screamin4vengence (Post 6200505)
Hello, I'm almost done with my first window manager setup. This is the last piece that needs to be done.
I use physlock to manually lock screen. And I use the command "loginctl suspend" to suspend.
I've already check session lock on the arch wiki, but it assumes that you use systemd. Quite confusing to me.
So what I want to do is that the screen will lock and go blank after inactivity. Also, I want it to lock after my computer wakes from suspension.
I really appreciate anyone who can help me on this. Thanks!

It sounds like your main problem is specific to openrc, or rather the difficulty to find good wiki & howto for it.
Does openrc, or artix, have their own forums?

screamin4vengence 12-28-2020 01:24 AM

Quote:

Originally Posted by michaelsavage (Post 6200547)
It's is hard to understand what you want. Please explain what you have already completed and what you want for the end result in a clear matter. People are more willing to help if they understand the issue. What is your OS? How much RAM do you have? What is you swap space? That is some of the information needed.

Sorry for not being specific. I've solved the first problem myself by putting "xss-lock physlock +resetsaver" in my xinirc. I figure it out with this
https://wiki.archlinux.org/index.php...ement#xss-lock
The only problem left is I want physlock to run when I suspend the computer. I use "loginctl suspend" to suspend. So, I want physlock to run after that. But I couldn't find any info on how to do this.
Thanks!


All times are GMT -5. The time now is 04:54 PM.