Track your working time by monitoring active program window in X.