aboutsummaryrefslogtreecommitdiff
path: root/src/skhd.c
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2018-04-20 22:31:09 +0200
committerkoekeishiya <aasvi93@hotmail.com>2018-04-20 22:31:09 +0200
commit9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8 (patch)
treedf4299b441d9bce4bf6d085c055c05902607cd63 /src/skhd.c
parente5f6d5df6db8128fc0b93643711d16adac6404d3 (diff)
parentc1a8031fe255baddbea041ed2bfc32787afe2108 (diff)
downloadskhd-9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8.tar.gz
skhd-9117aa1c79e3f352ee7eb122df64f1b6bd9e53d8.zip
merge master
Diffstat (limited to 'src/skhd.c')
-rw-r--r--src/skhd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/skhd.c b/src/skhd.c
index 16475f9..2e0d6b1 100644
--- a/src/skhd.c
+++ b/src/skhd.c
@@ -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) {