Is there any way of making ubuntu (through CLI) to
lock screen after X minutes?
I need to do so for example:
- I'm watching a 2Hours movie, so I need to make ubuntu that after 123 minutes to
Edit: I completely forgot about this:
So you could run, for example,
But there is a more convenient way:
Remember that you can simplify that command.
Now scroll down to the end of the file and add the following line
After having saved the file, whenever you run the command