Metadata-Version: 2.1
Name: getactivewindow-x
Version: 0.2.1
Summary: Separate component to get information on the active window in X.
Home-page: https://github.com/user202729/getactivewindow-x
Author: user202729
License: GNU General Public License v3 or later (GPLv3+)
Platform: UNKNOWN
Classifier: Environment :: Plugins
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: python-libxdo-ng (==0.1.4)

# getactivewindow-x
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

Use a fork of `python-libxdo`.

There's another branch [user202729/getactivewindow-x at spawn-xdotool-xprop-process](https://github.com/user202729/getactivewindow-x/tree/spawn-xdotool-xprop-process)
that uses subprocess, `xdotool` and `xprop`.

### API

Currently there are only these functions.

```python
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`.


