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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file getactivewindow_x-0.3.0.tar.gz.

File metadata

  • Download URL: getactivewindow_x-0.3.0.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for getactivewindow_x-0.3.0.tar.gz
Algorithm Hash digest
SHA256 049e0099bbc6bce3dd1be95f264d0c5d8a1ec727987b32d569a114462374fb6d
MD5 7993e3246857f54b3fbcb7bf6eae6af0
BLAKE2b-256 1fdc996980c3e2b393f7b477d3e399567b813e9c476b54521d6b9f453cfd5247

See more details on using hashes here.

File details

Details for the file getactivewindow_x-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for getactivewindow_x-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d780fd6551973070f9d61b9455393f17e1c5c00b37110484d8afa802eed1f2d
MD5 d34bb2564e67104a443a338d5632c4d6
BLAKE2b-256 0da23132273ccee677fdf4f740e105ebd8fe4c72fe83e92e304388ebe7c47867

See more details on using hashes here.

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