#pragma once #include #include #include #include #include #include #include "commands.h" #include "util.h" struct Keybind { KeySym key; unsigned int modifiers; std::string command; }; class KeybindsModule { public: KeybindsModule(CommandsModule& commandsModule, Globals& globals); ~KeybindsModule() = default; const void bind(const CommandArg* argv); const void handleKeypress(XKeyEvent e); private: std::vector binds; CommandsModule& commandsModule; Globals& globals; };