Switch to the first window with the title x A very small extension to allow you to switch windows via gdbus. This is particularly useful if you are using wayland as utilities such as wmctrl won't work. Since Gnome 41 removed org.gnome.Shell.Eval for security reasons, if you ever used a command such as: gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval"var mw = global.get_window_actors().map(w=>w.meta_window).find(mw=>mw.get_title().includes('Firefox'));mw && mw.activate(0)" this can now be replaced with: gdbus call --session --dest org.gnome.Shell --object-path /org/switcheroo/Switcheroo --method org.switcheroo.Switcheroo.Set Firefox This can then be assigned to a shortcut key in Gnome settings or called programmatically.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Please move line 36 and 37 to enable: https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization Use initTranslations() and getSettings() from ExtensionUtils instead of creating your own custom functions: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/misc/extensionUtils.js
Sorry for the `extensionUtils` comment. sent it here by mistake.