New answers tagged screen-lock
The approach I thought of was an infinite loop bash script that checks idle time and runs the lock command if it's not already running. This won't work with xscreensaver as it's a client/server model but since you said "custom command" in your question I took the liberty of using the very simple screenlocker slock instead. You'll need to install two ...
Top 50 recent answers are included