Sunset is a customizable "macro" expander. Basically, it does action whenever you type trigger.
This action can be anything from turning idk -> i don't know, to automating a tedious task.
Sunset isn't meant for your average person, and requires a fair amount of programming knowledge to configure. However, it provides lots of tools to make the job much easier.
Make sure you have Node.js and Git installed on your system.
Run the following command:
git clone https://github.com/TechnoDrive/sunsetor, alternatively with the GitHub CLI:
gh repo clone TechnoDrive/sunsetOnce you have done so, install all of the packages:
npm iNote: If you get an error, and you're on Linux / MacOS, use sudo.
Once you're in the freshly installed directory, run:
node index.jsor:
npm run devif you're creating commands (this enables auto-reloading).
Create a new .js file in the commands directory with the contents of example.js.
nameshould not contain any whitespace.- The
lengthparameter inrunis the total length of the command.
For your ease of use, these packages come pre-installed:
- iohook: For listening to input events.
- robotjs: For simple automation.
- nut-js: For more advanced automation.
- clipboardy: For reading and writing to the clipboard.
There are also utility functions found in ./utilties/utils.js.
There is one small tweak that you need to perform if you wish for <robot>.typeString to execute without the long delay.
After installing robotjs, head over to ./node_modules/robotjs/src/keypress.c. Then follow the steps on this issue response.
Then run:
npm rebuild