A screentime monitoring tool, shows how much time are you really using certain apps. It work nicely with i3status or py3status on I3 window manager for example :)

Screenshot

Install:

Arch:

yay screentime (or other AUR manager)

Locally:

cargo install

Usage:

  1. Run screentime in background to run the daemon
    1. Make requests
    2. screentime total will show you the total screentime in seconds
    3. screentime hms will show you the total screentime in HH:MM:SS format
    4. screentime summary will show you the usage summary in a nice format
    5. screentime raw_summary will show you the usage summary in a JSON format

Config:

Config path: $HOME/.config/screentime/config.toml

Variables:

How it works:

It just maintains a counter HashMap updated every second by one thread. Other thread has an HTTP API for the client to access the usage time. It uses only cross-platform libraries, so it should work on all three popular OSes.

Features:

Contributing:

Feel free to open an issue, or just make a pull request. If you see any improvements to make the code better in any way, open a PR. I'd be happy to welcome new contributors :)