Records program use from X11 focused window and idle time.