Hot answers tagged time-tracking
arbtt seems to match your requirements. Configurable rules sort applications into tags, based on the active window but background ones can also be taken into account The docs show how to configure an idle timer. Hopefully this tracks both keyboard and mouse activity. Generates nice graphs with arbtt-graph (demo here) See also ulogme (screenshots here), ...
Only top voted, non community-wiki answers of a minimum length are eligible