#daemon #hotkey #macos #command #extensible #modifiers #heimdall

bin+lib heimdall-cli

A simple hotkey daemon. Primarily tested on MacOS

12 releases

0.2.0 Feb 20, 2025
0.1.11 Jul 7, 2024
0.1.10 Jun 15, 2024
0.1.9 May 4, 2024
0.1.3 Nov 26, 2023

#283 in Hardware support

Download history 20/week @ 2024-12-08 4/week @ 2024-12-15 160/week @ 2025-02-09 39/week @ 2025-02-16

199 downloads per month

MIT license

14KB
202 lines

Heimdall

Status: Very alpha, but being daily driven by the author.

Note: This project is a WIP, and the following docs may be uncomplete. Feel free to open PR's if something is missing.

Features:

  • An extensible hotkey daemon which supports multiple modifiers, and custom commands.

Installation

To get started, simply clone the whole repository, and build it with Rust:

$ cargo install heimdall-cli

Getting started

To get started with Heimdall, follow these steps:

  1. Create a config file with the path $XDG_CONFIG_HOME/heimdall/config.toml The config file has the following format:
    [[bindings]]
    key = "C"
    modifiers = ["Ctrl", "Shift"]
    command = "echo hello"
    [[bindings]]
    key = "D"
    modifiers = ["Ctrl"]
    command = "osascript -e 'display notification  with title \"Hello 👋!\" subtitle \"Hello from Heimdall 😊\" sound name \"Crystal\"'"
    

2. Start heimdall with the `heim` command. If you want to start the service
    $ heim --start-service


Dependencies

~12–27MB
~444K SLoC