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.
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
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.2.1.tar.gz
(15.3 kB
view hashes)
Built Distribution
Close
Hashes for getactivewindow_x-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a28e6a9d8290a4c0782d23831d9b9c679e7459fc06c0aca4d4f946471f67b6f0 |
|
MD5 | 3533d364adb1a543b43e105eccc693ef |
|
BLAKE2b-256 | 47bc4268cfbdfa19b20a206efc3c2210c5e12ac1e56509c35e4b3cbdf72b451a |