You are not logged in.
Hi,
I would like to lock my computer after a couple of minutes of inactivity (using, in this case physlock) and it shouldn't matter if I'm in a X session or console. What is the best or preferred way to do it? Thanks!
Offline
/etc/systemd/logind.conf
IdleAction=lock
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
In a console - TMOUT.
Offline
on x11 use xautolock - logind afaik only will work with gnome atm. (requires a signal from the desktop sedssion)
Online
Good suggestions! I think I go with xautolock. How can I achieve automatically lock for console and not for e.g. terminals when X is running?
Offline
vlock.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
https://github.com/WhyNotHugo/systemd-lock-handler
Maybe you can use this (or a script similar to handler.py) to react to the lock event of systemd-logind and then run physlock.
Last edited by progandy (2018-02-03 21:23:32)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline