I want to record the active application and save the history of my active applications. I say an active application, because if I run the application and it is minimized, etc., I would not consider it active. To make my question more understandable, consider this example. I open Firefox and search the web for 20 minutes. Then I open a text editor and start writing within 5 minutes (Firefox works, but I do not use it, so Firefox should not be considered an active application). Therefore, I should be able to record the following information:
Firefox -> 20 minutes Text editor -> 5 minutes
I want to keep track of every application I use while the OS is running (preferably Linux), and make an open source application that says how much you use each application.
UPDATE: the application that I want to record is the application that the user sees on the display and works. For example, you can resize the window so that you can see both the Firefox editor and the Text editor (along with another workspace, cascade, etc.), but you are printing a text editor, so the text editor is the active application. In other words, the application is active if you interact with the last interacting application that you are viewing to read something in PDF, text, etc. Interaction with the application: I mean clicking, entering text, scrolling, etc.
NODE: The only thing I can’t understand is how to get an active application with these conditions. I think that if I get the best display application in the current workspace that solves the problem, then we have the ability to install on windows (always on top) that may have to do without this property. I found this question that could help answer.
Using Fedora 26,
Thanks in advance.
source share