20-20-20 rule enforcer for compositors implementing ext-session-lock.
Twenty makes sure that you look 20 ft away every 20 minutes for 20 seconds to relax your eyes.
Uses waycrate/exwlshelleventloop/iced_sessionlock for locking the screen.
cargo install twenty
Twenty runs as a daemon in the background. Sends a notification 10 seconds before locking the screen.
Initiaizing:
twenty --init [light/dark]
Killing:
twenty --kill
Pausing:
twenty --pause
View status (running / paused / not running):
twenty --status
You can configure twenty by creating a file in ~/.config/twenty/config.toml.
Example config:
theme = "dark"
cooldown = "20m"
lock_timer = "20s"
blacklisted = ["steam", "mpv"]theme: theme of the locked screen, can either belightordark.cooldown: duration between successive locks.lock_timer: duration of locking the screen.blacklisted: twenty checks if these processes are running and prevents locking the screen.
