joshgoebel / keyszer

a smart, flexible keymapper for X11 (a fork/reboot of xkeysnail )
Other
69 stars 15 forks source link

(DRAFT) Get context in Wayland+GNOME via DBus #131

Closed RedBearAK closed 1 year ago

RedBearAK commented 1 year ago

(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 the pip 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.

RedBearAK commented 1 year ago

Closing in favor of full PR #136 containing all the changed files.