Shortcut is a command-line tool that lets users create global keyboard shortcuts using a JSON
file. It allows assigning key combinations to shell commands for tasks like opening files or launching URLs. The tool offers JSON schema-based auto-completion to simplify the customization process and boost user productivity.
Download one of the releases in shortcut/releases
- Put
shortcut
in known path such asC:\bin
. - create JSON file alongside
shortcut
namedshortcut.config.json
with the following:
{
"version": "0.0.1",
"shortcuts": [
{"name" "test", "command": "echo hi", "keys": ["ctrl", "d"]}
]
}
- Run it once. it will autostart on boot from then.
Now you can customize it, I recommend edit using VSCode
For starting shortcut at boot, execute
./shortcut --install
Windows
, Linux
, macOS
- Start on boot with go-autostart
- Hot reload with fsnotify
- Releases with goReleaser
- Keys autocomplete
- Installer like oranda