You are not logged in.
I'm using qtile window manager and I'm having trouble trying to figure out how to suspend/hibernate my pc after X minutes if it is inactive. I thought about using 'cron' but I think if I use it the computer will suspend every time the X minutes are reached. Any ideas on how to proceed?
Offline
There are countless many ways to do so:
https://wiki.archlinux.org/title/Session_lock.
Personally, I'd just use logind. See `man logind.conf` and look at "IdleAction" and "IdleActionSec".
Last edited by Trilby (2022-10-26 15:33:58)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I use i3wm but wouldn't systemd still be in charge of this?
Here are some helpful links for systemd-sleep:
He was once a man, then he was almost killed, a mob hit gone wrong. Now we can rebuild him, we have the tools, we have FOSS, he will be better. He will be Alex, he will live again!
Offline