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