#pragma once #include #include #include #include #include #include #include "commands.h" struct Keybind { KeyCode key; unsigned int modifiers; std::string command; }; class KeybindsModule { public: KeybindsModule(CommandsModule& commandsModule, Display* dpy, Window root); ~KeybindsModule() = default; const void bind(const CommandArg* argv); const void exit(const CommandArg* argv); const void handleKeypress(XKeyEvent e); private: std::vector binds; bool exitNow; CommandsModule& commandsModule; Display* dpy; Window root; };