diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-04-20 22:31:09 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-04-20 22:31:09 +0200 |
commit | 9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8 (patch) | |
tree | df4299b441d9bce4bf6d085c055c05902607cd63 /src/skhd.c | |
parent | e5f6d5df6db8128fc0b93643711d16adac6404d3 (diff) | |
parent | c1a8031fe255baddbea041ed2bfc32787afe2108 (diff) | |
download | skhd-9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8.tar.gz skhd-9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8.zip |
merge master
Diffstat (limited to '')
-rw-r--r-- | src/skhd.c | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -41,9 +41,10 @@ extern bool CGSIsSecureEventInputSet(); internal unsigned major_version = 0; internal unsigned minor_version = 0; -internal unsigned patch_version = 10; -internal struct mode *current_mode; +internal unsigned patch_version = 14; +internal struct table hotkey_map; internal struct table mode_map; +internal struct mode *current_mode; internal char *config_file; internal void @@ -184,7 +185,11 @@ int main(int argc, char **argv) } if (!check_privileges()) { - error("skhd: must be run with accessibility access.\n"); + error("skhd: must be run with accessibility access! abort..\n"); + } + + if (!initialize_keycode_map()) { + error("skhd: could not initialize keycode map! abort..\n"); } if (!config_file) { |