For parents who have kids that game til 3am, I made a systemd unit to lock the kid out at 22:00 until 6:30.
We have a 12-yo gamer that regularly sneaks back onto his PC at night and is completely time blind. This timer unit will disable the user and log him out at 22:00 and even if he switches off the pc before then and tries to go on after the timer it will run 1 min after boot, it will also unlock the user at 06:30 using the same trick so no knocks on the door at 7am on a weekend 🤣
You can get the repo at , it's FOSS under MIT license so go fork it yourself to make changes to the time👌