Trying to get slock to lock the screen when suspending.
here is the systemd config:
If anyone can see what it is I`m doing wrong, please let me know.
Trying to get slock to lock the screen when suspending.
here is the systemd config:
If anyone can see what it is I`m doing wrong, please let me know.
Here is my solution to that, why not create a service which automatically triggers before sleep?
Edit: nevermind you already tried that, I think it’s the service options you give.
{
programs.slock.enable = true;
programs.xss-lock.enable = true;
programs.xss-lock.lockerCommand = "/run/wrappers/bin/slock";
}
This will start slock
when suspending. Use loginctl lock-session
to lock the screen.
Removed the service options and know it is working.
This would also work