diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-08-30 14:09:56 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-08-30 14:09:56 +0200 |
commit | 3d90dbeaa9cf13058ed349ba7beb2532c571c7fb (patch) | |
tree | 8acf5e60cda157093349c474402ab53d43422d65 /src/hotkey.h | |
parent | 822c4603547aa927b62efb6f77dd0c6b56ec7f33 (diff) | |
download | skhd-3d90dbeaa9cf13058ed349ba7beb2532c571c7fb.tar.gz skhd-3d90dbeaa9cf13058ed349ba7beb2532c571c7fb.zip |
first iteration
Diffstat (limited to 'src/hotkey.h')
-rw-r--r-- | src/hotkey.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/hotkey.h b/src/hotkey.h index f06ce90..f96fcea 100644 --- a/src/hotkey.h +++ b/src/hotkey.h @@ -57,6 +57,8 @@ enum hotkey_flag #include "hashtable.h" +struct carbon_event; + struct mode { int line; @@ -71,7 +73,8 @@ struct hotkey { uint32_t flags; uint32_t key; - char *command; + char **process_name; + char **command; struct mode **mode_list; }; @@ -103,7 +106,7 @@ unsigned long hash_hotkey(struct hotkey *a); struct hotkey create_eventkey(CGEventRef event); bool intercept_systemkey(CGEventRef event, struct hotkey *eventkey); -bool find_and_exec_hotkey(struct hotkey *eventkey, struct table *mode_map, struct mode **current_mode); +bool find_and_exec_hotkey(struct hotkey *k, struct table *t, struct mode **m, struct carbon_event *carbon); void free_mode_map(struct table *mode_map); void init_shell(); |