git clone git://github.com/flakas/Latte.git
cd Latte
python setup.py clean develop
Install (upgrade) from the latest source:
git clone git://github.com/flakas/Latte.git
cd Latte
python setup.py install
OR
Install via PIP (Python Package Index):
pip install latte
Upgrade via PIP:
pip install latte --upgrade
Configuration files are saved in ~/.config/latte folder.
Statistics files are stored in ~/.config/latte folder (configurable)
Run the binary script either in foreground:
latte run
or in the background:
latte run --silent &
To analyze log data you can use the built in analyzer:
Syntax: latte stats {windows,apps,tags} [OPTIONS]
latte stats windowsto analyze log data from past 24 hours by window titlelatte stats -hto print an help message
Time options:
--time-allto analyze all known log data--time-seconds Sto analyze log data created in last S seconds--time-days Dto analyze log data created in last D days--time-weeks Wto analyze log data created in last W weeks--time-months Mto analyze log data created in last M months
By default latte stats will analyze logs created in past 24 hours.
Displaying:
--display-allDisplay all found entries from the chosen time interval--display-limit NDisplay up to N top entries--display-time SECONDSDisplays entries that have the accumulated time greater than SECONDS
Tags:
--tagsshow stats for the comma-separated tag names
Latte can tag logs with custom tags for easier grouping and analytics.
Add tags:
latte tags add <name> [--window-title=<regex>] [--window-class=<regex>] [--window-instance=<regex>] [--tag=<regex>]- Filtering is based on Python's regular expressions using case-insensitive values;
- Window title, class, instance and tag filters are optional. All specified filters must match for the tag to be assigned.
Delete tags:
latte tags delete <name>
Show all tags:
latte tags show
Forcibly retag all logs:
latte tags retag
This application requires:
- Python 3
xpropto detect active window title for log tracking (sudo apt-get install x11-utils)
These dependencies are optional, but without them some functionality will not work:
libX11.soandlibXss.soto detect whether user is inactive (packageslibx11-devandlibxss-dev,sudo apt-get install libx11-dev libxss-dev)
To build an Automatic Time Tracker for Linux that:
- keeps track of windows where the user spends time
- is aware if the user is active or not
- collects information for personal analysis and statistics
- can classify activities based on user defined rules
- ignores unwanted and sensitive information
All without any human intervention (except for the initial set up).
MIT license, check LICENSE.txt
Special thanks to contributors.

