hy3/src/globals.hpp

22 lines
477 B
C++
Raw Normal View History

#pragma once
2023-10-27 04:08:07 -07:00
#include <hyprland/src/plugins/PluginAPI.hpp>
2023-04-26 00:57:24 -07:00
#include "Hy3Layout.hpp"
#include "log.hpp"
2023-04-17 00:53:02 -07:00
inline HANDLE PHANDLE = nullptr;
2023-04-26 00:57:24 -07:00
inline std::unique_ptr<Hy3Layout> g_Hy3Layout;
2023-06-28 21:36:08 -07:00
inline void errorNotif() {
HyprlandAPI::addNotificationV2(
PHANDLE,
{
{"text", "Something has gone very wrong. Check the log for details."},
{"time", (uint64_t) 10000},
{"color", CColor(1.0, 0.0, 0.0, 1.0)},
{"icon", ICON_ERROR},
}
);
}