# 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](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`.
Raw data
{
"_id": null,
"home_page": "https://github.com/user202729/getactivewindow-x",
"name": "getactivewindow-x",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "user202729",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/1f/dc/996980c3e2b393f7b477d3e399567b813e9c476b54521d6b9f453cfd5247/getactivewindow_x-0.3.0.tar.gz",
"platform": null,
"description": "# getactivewindow-x\n\n# Deprecated\n\nmaybe use `pywinctl` instead or one of the solutions in https://stackoverflow.com/q/10266281/5267751\n\nSee also https://github.com/Kalmat/PyWinCtl/issues/64\n\n-----\n\nSeparate component to get information on the active window in X.\n\n\n### Why?\n\nIn an attempt to be portable between operating systems.\n\nThe user can install another package that provides the same interface.\n\n### Internal details\n\nThere's another branch [user202729/getactivewindow-x at spawn-xdotool-xprop-process](https://github.com/user202729/getactivewindow-x/tree/spawn-xdotool-xprop-process)\nthat uses subprocess, `xdotool` and `xprop`.\n\n### API\n\nCurrently there are only these functions.\n\n```python\ndef active_window_id()->WindowID:\ndef window_name(window_id: WindowID)->str:\ndef window_class(window_id: WindowID)->tuple[str, ...]:\n```\n\nThe window name should not (but may) change if the window ID is constant.\n\nPackages should not rely on `WindowID` type being `int`.\n",
"bugtrack_url": null,
"license": "GNU General Public License v3 or later (GPLv3+)",
"summary": "Separate component to get information on the active window in X.",
"version": "0.3.0",
"project_urls": {
"Homepage": "https://github.com/user202729/getactivewindow-x"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0da23132273ccee677fdf4f740e105ebd8fe4c72fe83e92e304388ebe7c47867",
"md5": "d34bb2564e67104a443a338d5632c4d6",
"sha256": "3d780fd6551973070f9d61b9455393f17e1c5c00b37110484d8afa802eed1f2d"
},
"downloads": -1,
"filename": "getactivewindow_x-0.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d34bb2564e67104a443a338d5632c4d6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 14907,
"upload_time": "2023-06-03T11:53:04",
"upload_time_iso_8601": "2023-06-03T11:53:04.589770Z",
"url": "https://files.pythonhosted.org/packages/0d/a2/3132273ccee677fdf4f740e105ebd8fe4c72fe83e92e304388ebe7c47867/getactivewindow_x-0.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1fdc996980c3e2b393f7b477d3e399567b813e9c476b54521d6b9f453cfd5247",
"md5": "7993e3246857f54b3fbcb7bf6eae6af0",
"sha256": "049e0099bbc6bce3dd1be95f264d0c5d8a1ec727987b32d569a114462374fb6d"
},
"downloads": -1,
"filename": "getactivewindow_x-0.3.0.tar.gz",
"has_sig": false,
"md5_digest": "7993e3246857f54b3fbcb7bf6eae6af0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15556,
"upload_time": "2023-06-03T11:53:06",
"upload_time_iso_8601": "2023-06-03T11:53:06.803832Z",
"url": "https://files.pythonhosted.org/packages/1f/dc/996980c3e2b393f7b477d3e399567b813e9c476b54521d6b9f453cfd5247/getactivewindow_x-0.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-03 11:53:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "user202729",
"github_project": "getactivewindow-x",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "getactivewindow-x"
}