Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 932 Bytes

README.md

File metadata and controls

48 lines (32 loc) · 932 Bytes

desktopspy

This library contains utility functions for recording desktop activity on windows and linux

I created this for my productivity tool Activity Monitor

Features

  • Cross platform [windows, linux(ubuntu, X window system)]

Functions

Get foreground window name, process, pid

from desktopspy.trackers import getForegroundWindow
>>> getForegroundWindow()
('New Tab`, 2500)

>>> import psutil
>>> psutil.Process(2500).name()
'chrome.exe'

isUserActive

from desktopspy.trackers import isUserActive
>>> isUserActive()
True

Installation

This library is now available on the python package index.

Visit the pypi page.

pip install desktopspy

or with python-poetry

poetry add desktopspy

Please note that this software is in very early stage of development.