diff options
author | koekeishiya <aasvi93@hotmail.com> | 2018-05-13 12:03:49 +0200 |
---|---|---|
committer | koekeishiya <aasvi93@hotmail.com> | 2018-05-13 12:03:49 +0200 |
commit | bf25de2bce2946696ded80a99474b0ac7ad48cee (patch) | |
tree | 0229260ecba9561cf76f1008bcb8146df7ed875f /src/hotkey.h | |
parent | b84d878effd520ac443e600bec95a4164f486618 (diff) | |
download | skhd-bf25de2bce2946696ded80a99474b0ac7ad48cee.tar.gz skhd-bf25de2bce2946696ded80a99474b0ac7ad48cee.zip |
#33 add support for binding media-keys
Diffstat (limited to 'src/hotkey.h')
-rw-r--r-- | src/hotkey.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hotkey.h b/src/hotkey.h index 82a936f..b0ca504 100644 --- a/src/hotkey.h +++ b/src/hotkey.h @@ -39,6 +39,7 @@ enum hotkey_flag Hotkey_Flag_Fn = (1 << 12), Hotkey_Flag_Passthrough = (1 << 13), Hotkey_Flag_Activate = (1 << 14), + Hotkey_Flag_NX = (1 << 15), Hotkey_Flag_Hyper = (Hotkey_Flag_Cmd | Hotkey_Flag_Alt | Hotkey_Flag_Shift | @@ -65,6 +66,12 @@ struct hotkey struct mode **mode_list; }; +struct systemkey +{ + struct hotkey eventkey; + bool intercept; +}; + static inline void add_flags(struct hotkey *hotkey, uint32_t flag) { @@ -91,6 +98,8 @@ bool same_hotkey(struct hotkey *a, struct hotkey *b); unsigned long hash_hotkey(struct hotkey *a); struct hotkey create_eventkey(CGEventRef event); +struct systemkey create_systemkey(CGEventRef event); + bool find_and_exec_hotkey(struct hotkey *eventkey, struct table *mode_map, struct mode **current_mode); void free_mode_map(struct table *mode_map); |