Shortcut for extension

I thought I’d learn how to write gnome extensions and wanted to start with something simpler.
I want to add a shortcut to this extension:
I followed this vid + googling:

See first comment for code (sorry but due to the 2 Link limit)

The extension works normally, but the shortcut doesn’t.
When checking for errors via lg - it says that it doesn’t omit any errors.

I think I’m doing something fundamentally wrong - any nudges in the right direction would be very much appreciated.

Thank you!

1 Like

My current code of the extension.js is:
Code of the xml:

I solved a similar issue,, by changing the name of the shortcut.
Not sure if it fits the situation you are experiencing. :thinking:

1 Like

I’ll have a look! Thank you

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.