#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

#289 in Hardware support

Download history 9/week @ 2024-12-04 15/week @ 2024-12-11 19/week @ 2025-02-12 134/week @ 2025-02-19 13/week @ 2025-02-26

166 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–32MB
~467K SLoC