#key #command #keyboard-shortcuts #daemon #execute #cli #monitor

app blukey

A Linux daemon for creating custom keyboard shortcuts that can execute shell commands

1 unstable release

new 0.0.2-rc0 Dec 8, 2024
0.0.1 Dec 7, 2024

#258 in Hardware support

Download history 236/week @ 2024-12-06

236 downloads per month

MIT license

17KB
337 lines

Blukey

A CLI to set your custom key combo to perform custom key actions.

Installation

cargo install blukey

Usage

blukey <COMMAND>

Commands:
  start         Start the keyboard monitor
  stop          Stop the daemon
  key           Manage key combinations
  config-path   Show config file location

Key Commands:
  key new       Register a new key combination
  key list      List all registered key combinations

Examples

  1. Register a new shortcut:
sudo blukey key new
# Follow the prompts to press keys and enter command
  1. Start the monitor:
sudo blukey start
  1. List registered shortcuts:
blukey key list

Configuration

Configuration is stored in ~/.blukey.json. The format is:

{
  "DEMON": false,
  "KEYS": {
    "KEY_LEFTCTRL+KEY_C": "echo 'Ctrl+C pressed'"
  }
}

License

MIT License - See LICENSE for details.

Dependencies

~11–22MB
~333K SLoC