Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

skhd

> 编程语言
Open source

Simple hotkey daemon for macOS

8.1K stars0 likes0 views
WebsiteGitHub

About

Simple hotkey daemon for macOS

NOTE: If you are having issues with skhd, or are looking for feature expansion and future development,
you may want to check out this backwards compatible skhd-port written in Zig by Jackie Li.
(I am not personally involved in this re-write.)

This repository is in maintenance mode; only critical issues that affect the core functionality of the software will be taken care of.

skhd is a simple hotkey daemon for macOS that focuses on responsiveness and performance. Hotkeys are defined in a text file through a simple DSL. skhd is able to hotload its config file, meaning that hotkeys can be edited and updated live while skhd is running.

skhd uses a pid-file to make sure that only one instance is running at any moment in time. This also allows for the ability to trigger a manual reload of the config file by invoking skhd --reload at any time while an instance of skhd is running. The pid-file is saved as /tmp/skhd_$USER.pid and so the user that is running skhd must have write permission to said path. When running as a service (through launchd) log files can be found at /tmp/skhd_$USER.out.log and /tmp/skhd_$USER.err.log.

list of features

feature skhd
hotload config file [x]
hotkey passthrough [x]
modal hotkey-system [x]
application specific hotkey [x]
blacklist applications [x]
use media-keys as hotkey [x]
synthesize a key-press [x]

Install

The first time skhd is ran, it will request access to the accessibility API.

After access has been granted, the application must be restarted.

Secure Keyboard Entry must be disabled for skhd to receive key-events.

Homebrew:

Requires xcode-8 command-line tools.

bash
  brew install asmvik/formulae/skhd
  skhd --start-service

Source:

Requires xcode-8 command-line tools.

bash
  git clone https://github.com/asmvik/skhd
  make install      # release version
  make              # debug version

Usage

…

Configuration

The default configuration file is located at one of the following places (in order):

  • $XDG_CONFIG_HOME/skhd/skhdrc
  • $HOME/.config/skhd/skhdrc
  • $HOME/.skhdrc

A different location can be specified with the --config | -c argument.

A sample config is available here

A list of all built-in modifier and literal keywords can be found here

A hotkey is written according to the following rules:

…

A mode is declared according to the following rules:

…

General options that configure the behaviour of skhd:

# specify a file that should be included as an additional config-file.
# treated as an absolutepath if the filename begins with '/' otherwise
# the file is relative to the path of the config-file it was loaded from.

.load "/Users/Koe/.config/partial_skhdrc"
.load "partial_skhdrc"

# prevents skhd from monitoring events for listed processes.

.blacklist [
    "terminal"
    "qutebrowser"
    "kitty"
    "google chrome"
]

Issues· 152 open

View all issuesOpen on GitHub
  • #195

    Remap mouse buttons

    Updated Sep 7, 2026
  • #245

    Is it possible to listen for mouse clicks?

    Updated Sep 7, 2026
  • #400

    Supply chain security question: What happened to the old koekeishiya/* github handle ?

    Updated Jun 18, 2026
  • #360

    previous/next keys not working on M3 mac

    Updated May 18, 2026
  • #371

    Unable to run skhd directly after Sequoia upgrade

    Updated Apr 10, 2026
  • #308

    skhd asks for access to audio and video when using ffmpeg

    Updated Feb 15, 2026
  • #25

    Trackpad Gesture Support

    enhancementUpdated Jan 21, 2026
  • #352

    Cannot build

    Updated Dec 13, 2025
  • #395

    Keycode doesn't work with function keys over f20

    Updated Nov 21, 2025
  • #1

    keywords (modifiers and literals)

    informationUpdated Nov 17, 2025

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言