mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-08 17:05:58 +01:00
30 lines
1 KiB
C++
30 lines
1 KiB
C++
#pragma once
|
|
|
|
#include "utilities/Keybind.hpp"
|
|
#include <vector>
|
|
#include "windowManager.hpp"
|
|
|
|
#include <map>
|
|
|
|
namespace KeybindManager {
|
|
inline std::vector<Keybind> keybinds;
|
|
|
|
unsigned int modToMask(std::string);
|
|
|
|
Keybind* findKeybindByKey(int mod, xcb_keysym_t keysym);
|
|
xcb_keysym_t getKeysymFromKeycode(xcb_keycode_t keycode);
|
|
xcb_keycode_t getKeycodeFromKeysym(xcb_keysym_t keysym);
|
|
|
|
uint32_t getKeyCodeFromName(std::string);
|
|
|
|
// Dispatchers
|
|
void call(std::string args);
|
|
void killactive(std::string args);
|
|
void movewindow(std::string args);
|
|
void movefocus(std::string args);
|
|
void changeworkspace(std::string args);
|
|
void changetolastworkspace(std::string args);
|
|
void toggleActiveWindowFullscreen(std::string args);
|
|
void toggleActiveWindowFloating(std::string args);
|
|
void movetoworkspace(std::string args);
|
|
};
|