Parental controls and screen time limits on Linux
Linux has far less of this built in than Windows or macOS, and what exists is aimed at limiting other people's accounts. Here is what each of the common distributions actually gives you, and what to do when you are trying to limit your own time rather than a child's.
What is built in
Ubuntu and Fedora (GNOME) ship GNOME's Parental Controls (the malcontent project), in Settings → Users. From an administrator account you can restrict which applications a standard user may install and run. It governs applications, not a daily clock, and it manages another account rather than the one you are signed in to.
Linux Mint has a Domain Blocker for blocking websites system-wide, but no built-in screen-time schedule or daily limit.
Arch, Debian and most other distributions ship nothing for this by default; you assemble it from the pieces below.
The usual add-ons
The tool people reach for is timekpr-next, which sets a daily time budget and allowed login hours per user and is packaged for most distributions. At a lower level you can restrict login times with PAM's pam_time module, or cut network access on a schedule with a cron job and firewall rules. All of these are administered from an account the person being limited does not control.
Where this leaves you
Every built-in option here assumes two people: an administrator setting the rule and someone else living under it. That is the wrong shape for the common case — you want to limit your own time, and you hold the root password. A limit you can switch off in the moment you most want to is not really a limit. This is also why Linux parental control is a thin, under-served corner: the tools are built for managing children's accounts, not for self-control.
How One Focus does it
This is the gap One Focus is built for on Linux. It runs for your own account, and it does not rely on you not knowing an administrator password — the whole design assumes the person it limits is the person who installed it.
One Focus is a usage limiter, not a tracker that waits for you to stop yourself. You set a daily limit, a nightly block, or a forced Pomodoro rhythm, and it enforces them: when time is up it covers the screen until the window passes. It is built to resist the moment of weakness it exists for — lifting a limit early takes the control password you set, and there is an optional linked account so someone else can see whether you kept to the limits rather than you alone.
It runs on Windows, macOS, Linux and Android, so the rule is the same on every machine you use. It is free and open source under the MIT licence, which for a program that holds this much power over your own computer is the point: you can read exactly what it does before you trust it with that.
Download One Focus — there is a one-line installer and packages for common Linux distributions; pick your platform in the download section.