Track and visualize your computer usage patterns with this lightweight Python tool.
- Automatic tracking of active computer time (excluding idle periods)
- Hourly heatmap showing usage patterns (darker colors = more usage)
- Daily usage charts for quick overviews
- Lightweight background process with minimal system impact
- X-axis: Dates (MM/DD)
- Y-axis: Hours of the day (00:00 to 23:00)
- Color intensity: Usage time in hours (darker = more usage)
- Install dependencies:
pip install -r requirements.txt- Start tracking:
laptop-tracker start- View your usage:
# Hourly heatmap
laptop-tracker hourly
# Daily usage chart
laptop-tracker daily
# Raw usage data
laptop-tracker logsTrack your most productive hours:
laptop-tracker hourly --debugSee daily totals for the past month:
laptop-tracker dailyCheck if tracker is running:
laptop-tracker status- Python 3.6+
- Linux (for idle detection)
- xprintidle (
sudo apt install xprintidle)
- Tracks active time (excluding idle periods >2 minutes)
- Logs usage to
log/hourly-laptop.log - Generates visualizations on demand
Perfect for:
- Productivity tracking
- Work habit analysis
- Digital wellbeing awareness
