Support Espanso Macro Scripts for Linux and MacOS #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Right now macro options on Linux are limited to only X11 users. If you use Linux with Wayland Autokey is not an option.
I did some digging and found that Espanso might be a good option. It also has a MacOS version, so that's a bit of a bonus.
I did some modifications to the current macro script code. The changes are as follows:
extraInstructions
which provide a bit more information (Espanso isn't the easiest to use out of the box, so having a bit of info can go a long way)supportsShortcut
can now either befalse
or astring
. This is to allow changing the base shortcut fromalt
toctrl
for Espanso as it does not allow using Alt or Super as its keybind keys.MacOS functionality is untested right now, but based on the docs (https://espanso.org/docs/get-started/) it should work out fine.