https://github.com/johannesbuchner/activitytracker
Track what you are spending your time on
https://github.com/johannesbuchner/activitytracker
activity-logger linux productivity python
Last synced: 2 months ago
JSON representation
Track what you are spending your time on
- Host: GitHub
- URL: https://github.com/johannesbuchner/activitytracker
- Owner: JohannesBuchner
- Created: 2019-03-08T10:10:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-09T10:09:35.000Z (over 1 year ago)
- Last Synced: 2025-01-23T20:52:17.423Z (4 months ago)
- Topics: activity-logger, linux, productivity, python
- Language: Python
- Size: 7.81 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Activity Tracker
===================Track what you are spending your time on.
* It logs the current open window title and whether the user is active every 15s.
* Reports to be done. Ultimately I want to classify in "deep work" and "slacking" and see when I am most productive.Installation
=============Place into ~/.config/autostart/activitytracker.desktop::
[Desktop Entry]
Name=Activity Tracker
GenericName=Tracks what you spend your time on
Exec=/home/user/Downloads/activitytracker/tracker.sh
StartupNotify=false
Terminal=false
Version=1.0
Categories=Utility;
Type=Application
X-GNOME-Autostart-enabled=trueThen restart.
Or start it manually with::
$ /home/user/Downloads/activitytracker/tracker.sh
Watch the recording::
$ tail -f ~/.local/share/activitytracker/log
Reports
=============* Create ~/.local/share/activitytracker/classes defining in each line:
* Name of class
* \t as separator
* Regular expression for matching "title :: executable"
for example::
Hobby ~/Downloads/activitytracker
Lit JabRef
Programming /usr/bin/gedit
Programming IPython
Programming /usr/lib/gnome-terminal/gnome-terminal-server* The first matching class is assigned.
* run report.py::
$ python report.py
day of the year
|
| hour of day (four for each 15 minutes
| |
v v
DDD-HH Hobb Lit Prog Rese <-- classes
66-16 ====
66-16 ====
66-16 === ==
66-17 ==== =
66-17 ====
66-17 === ==
66-18 = = ===
66-18 ==== =
\^
|
bar shows time fraction
spend on that classLicense
==========2-clause BSD