/shortcut

Cross platform shortcut manager

Primary LanguageGo

shortcut

Introduction

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.

Downloads

Download one of the releases in shortcut/releases

Usage

  1. Put shortcut in known path such as C:\bin.
  2. create JSON file alongside shortcut named shortcut.config.json with the following:
{
  "version": "0.0.1",
  "shortcuts": [
    {"name" "test", "command": "echo hi", "keys": ["ctrl", "d"]}
  ]
}
  1. Run it once. it will autostart on boot from then.

Now you can customize it, I recommend edit using VSCode

Start on boot

For starting shortcut at boot, execute

./shortcut --install

Supported Platforms

Windows, Linux, macOS

Todo