diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-02-05 01:56:38 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-02-05 01:57:29 +0000 |
| commit | 60bda7ee3d0a77d19277540cce53ecbddeabd716 (patch) | |
| tree | 813a2342a3e56c174b5bee91bf274bc6081ef56c /src/SharedDefs.hpp | |
| parent | 939696f97e2dcfa9ed6b91aa7ddf608c454d49e5 (diff) | |
pluginapi: allow registering hyprctl commands
closes #4616
Diffstat (limited to 'src/SharedDefs.hpp')
| -rw-r--r-- | src/SharedDefs.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp index 3dfb272a..55ce1f81 100644 --- a/src/SharedDefs.hpp +++ b/src/SharedDefs.hpp @@ -1,6 +1,7 @@ #pragma once #include "helpers/Vector2D.hpp" +#include <functional> enum eIcons { ICON_WARNING = 0, @@ -58,3 +59,14 @@ struct SWindowDecorationExtents { bottomRight = bottomRight.getComponentMax(other.bottomRight); } }; + +enum eHyprCtlOutputFormat { + FORMAT_NORMAL = 0, + FORMAT_JSON +}; + +struct SHyprCtlCommand { + std::string name = ""; + bool exact = true; + std::function<std::string(eHyprCtlOutputFormat, std::string)> fn; +}; |
