@nazar-pc the script only works for Geany running on X, but even then nobody has contributed the code to perform the actions of the script in code. But Geany also runs on Wayland and Windows and OS-X, so any X only solution must be appropriately disabled in those cases.
Pull requests are welcome.