Lightweight 'screentime' app for Lubuntu 18.04

I am currently running Lubuntu 18.04 and I was wondering if anyone has any recommendations for a lightweight app that records the total amount of time I spend on the screen every day. I have seen some applications that achieve this but many of them require you to manually start and stop a timer everytime you start working on the computer.

I am looking for an app that will is free, will automaticially startup and will count ALL screentime (a breakdown of how I the screentime was spent would be nice but isn't neccesary). Addittionaly, it would be nice if the screentime app would only record time when my moniter is on (so for example, if I'm listening to music but my moniter is off the app wouldn't record anything).

Any suggestions?

Thanks in advance for your help!


Solution 1:

I like ActivityWatch...works with all linux distros.

Requires:

  • Python 3.6 or 3.7
  • Poetry (python3 -m pip install poetry)
  • Node 12 or higher
  • Rust nightly

For me, it runs just fine on my older machine (Ubuntu 18.04 LTS + Lubuntu Desktop.) I run it from a python virtual environment.

python3 -m venv venv
# In bash/zsh:

source ./venv/bin/activate

Solution 2:

Check workflow. See this Askubuntu question for auto-starting applications on login.