Log your activity on a linux system based on which window is active, then analyze the logs to find how you spend your time