Just going to park this here. Working implementation of a method to get the window attributes (context) while in Wayland+GNOME via DBus.
Requires dbus-python module or package to be installed, which on Ubuntu 22.04 had a number of dependencies that had to be resolved before the pip install would complete successfully.
Also requires the GNOME shell extension "Window Calls Extended" which presents the window attributes via a DBus service.
(DRAFT)
Just going to park this here. Working implementation of a method to get the window attributes (context) while in Wayland+GNOME via DBus.
Requires
dbus-python
module or package to be installed, which on Ubuntu 22.04 had a number of dependencies that had to be resolved before thepip
install would complete successfully.Also requires the GNOME shell extension "Window Calls Extended" which presents the window attributes via a DBus service.
https://extensions.gnome.org/extension/4974/window-calls-extended/ https://github.com/hseliger/window-calls-extended
Another possibility if this extension becomes unavailable or incompatible with a future GNOME version is the extension used by
xremap
.Edit: Removed the code for getting the parent window since it's apparently unnecessary on Wayland.