I'm relatively new to Gnome Extension development. Of course I tested the code and it works as expected (for me), but feel free to modify it as you see fit. I got a lot of the code (e.g. prefs.js) straight from the examples at https://gjs.guide/extensions
The schema XML in schemas/ needs to be compiled. I didn't add the compiled file (schemas/gschemas.compiled) to the PR because it's a binary file and I wasn't sure if it should be part of the publishing process? I've just been compiling it locally for testing using the command from here: https://gjs.guide/extensions/development/preferences.html#compiling-a-schema
Lastly, I have a couple other additions I'll probably make, such as adding an item to the preferences page to make the unmute delay (currently 500 ms) user-configurable. And if it's not too much work I'll try to tackle #6 as well. Would you prefer I add those to this PR or create separate PRs for those?
Closes #18
@danigm A few notes:
schemas/
needs to be compiled. I didn't add the compiled file (schemas/gschemas.compiled
) to the PR because it's a binary file and I wasn't sure if it should be part of the publishing process? I've just been compiling it locally for testing using the command from here: https://gjs.guide/extensions/development/preferences.html#compiling-a-schema500
ms) user-configurable. And if it's not too much work I'll try to tackle #6 as well. Would you prefer I add those to this PR or create separate PRs for those?Thanks!