Skip to main content

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

Project description

getactivewindow-x

Separate component to get information on the active window in X. Requires the executable xdotool (and xprop to get the window class).

Why?

In an attempt to be portable between operating systems.

Internal details

Use xdotool and xprop.

  • Why not python-libxdo?

    Currently the library is (unfortunately) mostly unmaintained, although the cost of spawning a process can be expensive.

API

Currently there are only 2 functions.

def active_window_name()->str:
def active_window_class()->tuple[str, ...]:

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.0.1.tar.gz (15.2 kB view hashes)

Uploaded Source

Built Distribution

getactivewindow_x-0.0.1-py3-none-any.whl (14.6 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