Hypr/src/KeybindManager.hpp
2021-11-21 13:11:51 +01:00

27 lines
No EOL
799 B
C++

#pragma once
#include "utilities/Keybind.hpp"
#include <vector>
#include "windowManager.hpp"
#include <map>
namespace KeybindManager {
inline std::vector<Keybind> keybinds;
unsigned int modToMask(MODS);
Keybind* findKeybindByKey(int mod, xcb_keysym_t keysym);
xcb_keysym_t getKeysymFromKeycode(xcb_keycode_t keycode);
xcb_keycode_t getKeycodeFromKeysym(xcb_keysym_t keysym);
// Dispatchers
void call(std::string args);
void killactive(std::string args);
void movewindow(std::string args);
void changeworkspace(std::string args);
void toggleActiveWindowFullscreen(std::string args);
uint32_t getKeyCodeFromName(std::string);
};