summaryrefslogtreecommitdiff
path: root/keybinds.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-06-03 21:30:05 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-06-03 21:30:05 +1200
commite9cc5756dbb0a2d079a7b5e3438d79945f819df5 (patch)
tree3881cb6bed150ef11252ef04a5e11c05d5af05f8 /keybinds.h
parent01bc6a33eb235cd10851e2c31b99e6840603ca7d (diff)
downloadYATwm-e9cc5756dbb0a2d079a7b5e3438d79945f819df5.tar.gz
YATwm-e9cc5756dbb0a2d079a7b5e3438d79945f819df5.zip
feat: Keybind updates
Re added the ability to swap super and mod as a config parameter (the ~swapmods~) command). Finally fixed keybinds sometimes not working because of numlock, bitwise & with the modifiers I actually care about.
Diffstat (limited to 'keybinds.h')
-rw-r--r--keybinds.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/keybinds.h b/keybinds.h
index 43f6ef3..07d9aea 100644
--- a/keybinds.h
+++ b/keybinds.h
@@ -8,6 +8,7 @@
#include <vector>
#include "commands.h"
+#include "config.h"
#include "util.h"
struct Keybind {
@@ -18,12 +19,14 @@ struct Keybind {
class KeybindsModule {
public:
- KeybindsModule(CommandsModule& commandsModule, Globals& globals);
+ 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<Keybind> binds;
CommandsModule& commandsModule;
+ Config& cfg;
Globals& globals;
};