What is the smartest way to temporarily disable the Automatic Screen Lock function?
Think of this usecase: The default setting of the machine is a very low blanking time to agressively save energy and automatic screen lock right after for security (in case one walks away from the machine and forgets to lock it).
Now sometimes the machine is supposed to be shared. Imagine for cooking. You want to be able to see the recipie right after touching one button without entering a password. (Maybe you have dirty hands or someone else is using the machine who does not know the password.)
The standard way to deal with this is to disable the automatic screen lock, either from GUI or from the CLI. The issue here is that reenabling it afterwards is a tedious task, that is easily forgotten.
The question now is, how to disable the Automatic Screen Lock only for a specified time (1 hour, 1 day) or until a specific event (shutdown).
My idea is to use anacron to set it to enabled every day. Yet I do not feel like this is very elegant. Any better solutions?