Hypr/src/KeybindManager.hpp

27 lines
799 B
C++
Raw Normal View History

2021-11-19 20:20:05 +01:00
#pragma once
#include "utilities/Keybind.hpp"
#include <vector>
2021-11-19 20:20:05 +01:00
#include "windowManager.hpp"
2021-11-21 13:11:51 +01:00
#include <map>
namespace KeybindManager {
2021-11-19 20:20:05 +01:00
inline std::vector<Keybind> keybinds;
2021-11-19 20:20:05 +01:00
unsigned int modToMask(MODS);
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);
// 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);
void changeworkspace(std::string args);
void toggleActiveWindowFullscreen(std::string args);
2021-11-21 13:11:51 +01:00
uint32_t getKeyCodeFromName(std::string);
};