Skip to main content

Separate component to get information on the active window in X.

Project description

getactivewindow-x

Deprecated

maybe use pywinctl instead or one of the solutions in https://stackoverflow.com/q/10266281/5267751

See also https://github.com/Kalmat/PyWinCtl/issues/64


Separate component to get information on the active window in X.

Why?

In an attempt to be portable between operating systems.

The user can install another package that provides the same interface.

Internal details

There's another branch user202729/getactivewindow-x at spawn-xdotool-xprop-process that uses subprocess, xdotool and xprop.

API

Currently there are only these functions.

def active_window_id()->WindowID:
def window_name(window_id: WindowID)->str:
def window_class(window_id: WindowID)->tuple[str, ...]:

The window name should not (but may) change if the window ID is constant.

Packages should not rely on WindowID type being int.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

getactivewindow_x-0.3.0.tar.gz (15.6 kB view hashes)

Uploaded Source

Built Distribution

getactivewindow_x-0.3.0-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page