2021-11-19 20:20:05 +01:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-18 18:04:09 +01:00
|
|
|
#include "utilities/Keybind.hpp"
|
|
|
|
#include <vector>
|
2021-11-19 20:20:05 +01:00
|
|
|
#include "windowManager.hpp"
|
2021-11-18 18:04:09 +01:00
|
|
|
|
2021-11-21 13:11:51 +01:00
|
|
|
#include <map>
|
|
|
|
|
2021-11-18 18:04:09 +01:00
|
|
|
namespace KeybindManager {
|
2021-11-19 20:20:05 +01:00
|
|
|
inline std::vector<Keybind> keybinds;
|
2021-11-18 18:04:09 +01:00
|
|
|
|
2021-12-06 15:04:47 +01:00
|
|
|
unsigned int modToMask(std::string);
|
2021-11-18 18:04:09 +01:00
|
|
|
|
|
|
|
Keybind* findKeybindByKey(int mod, xcb_keysym_t keysym);
|
2021-11-19 20:20:05 +01:00
|
|
|
xcb_keysym_t getKeysymFromKeycode(xcb_keycode_t keycode);
|
|
|
|
xcb_keycode_t getKeycodeFromKeysym(xcb_keysym_t keysym);
|
|
|
|
|
2021-11-21 15:15:33 +01:00
|
|
|
uint32_t getKeyCodeFromName(std::string);
|
|
|
|
|
2021-11-19 20:20:05 +01:00
|
|
|
// Dispatchers
|
|
|
|
void call(std::string args);
|
2021-11-19 20:34:05 +01:00
|
|
|
void killactive(std::string args);
|
2021-11-19 22:29:44 +01:00
|
|
|
void movewindow(std::string args);
|
2021-12-05 12:05:44 +01:00
|
|
|
void movefocus(std::string args);
|
2021-11-20 10:04:14 +01:00
|
|
|
void changeworkspace(std::string args);
|
2022-01-07 13:09:45 +01:00
|
|
|
void changetolastworkspace(std::string args);
|
2021-11-21 11:42:44 +01:00
|
|
|
void toggleActiveWindowFullscreen(std::string args);
|
2021-11-21 15:15:33 +01:00
|
|
|
void toggleActiveWindowFloating(std::string args);
|
2021-11-25 17:44:46 +01:00
|
|
|
void movetoworkspace(std::string args);
|
2022-01-07 13:09:45 +01:00
|
|
|
};
|