Hypr/src/KeybindManager.hpp
2021-11-19 20:34:05 +01:00

20 lines
No EOL
584 B
C++

#pragma once
#include "utilities/Keybind.hpp"
#include <vector>
#include "windowManager.hpp"
namespace KeybindManager {
inline std::vector<Keybind> keybinds;
unsigned int modToMask(MODS);
Keybind* findKeybindByKey(int mod, xcb_keysym_t keysym);
void reloadAllKeybinds();
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);
};