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)
Built Distribution
Close
Hashes for getactivewindow_x-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84990bff2c3c810ad15db6b056bb923be6f30771c34f919d72b0bd977379ead9 |
|
MD5 | 72ebc0b7e9ea603719e8095a586dd8cb |
|
BLAKE2b-256 | 2a85346cef9218a9d7e956684a0aaab78dab46dc21ca822ab8a7755601ba789b |