---

How to auto-lock your session on a schedule (e.g. at bedtime) using systemd

I’m terrible at maintaining a consistent bedtime and often stay up on the computer late into the night. Here are instructions for how to set up scheduled screen locking with systemd timers (works for terminal sessions as well as desktop sessions).

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis