blob: fed540bd5d228dcb2c3ba9c36a98241e92980b67 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
**skhd** is a simple hotkey daemon for macOS. It is a stripped version of [**khd**](https://github.com/koekeishiya/khd)
(although mostly rewritten from scratch), that sacrifices the more advanced features in favour of increased responsiveness and performance.
| feature | skhd | khd |
|:--------------------------:|:----:|:---:|
| hotload config file | [x] | [ ] |
| require unix domain socket | [ ] | [x] |
| hotkey passthrough | [x] | [x] |
| modal hotkey-system | [ ] | [x] |
| app specific hotkey | [ ] | [x] |
| modifier only hotkey | [ ] | [x] |
| caps-lock as hotkey | [ ] | [x] |
| mouse-buttons as hotkey | [ ] | [x] |
| emit keypress | [ ] | [x] |
| autowrite text | [ ] | [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.
**Source**:
Requires xcode-8 command-line tools,
make install # release version
make # debug version
### Usage
```
-v | --version: Print version number to stdout
skhd -v
-c | --config: Specify location of config file
skhd -c ~/.skhdrc
```
### Configuration
**skhd** will load the configuration file `$HOME/.skhdrc`, unless otherwise specified.
A list of all built-in modifier and literal keywords can be found [here](https://github.com/koekeishiya/skhd/issues/1)
See [sample config](https://github.com/koekeishiya/skhd/blob/master/examples/skhdrc) for syntax information.
|