mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-03 05:31:59 -07:00
plugin api: add addNotificationV2
Allows for issuing fancy notifs via api
This commit is contained in:
@@ -19,6 +19,7 @@ See examples/examplePlugin for an example plugin
|
||||
|
||||
#include "../helpers/Color.hpp"
|
||||
#include "HookSystem.hpp"
|
||||
#include "../SharedDefs.hpp"
|
||||
|
||||
#include <any>
|
||||
#include <functional>
|
||||
@@ -214,4 +215,19 @@ namespace HyprlandAPI {
|
||||
returns: true on success. False otherwise.
|
||||
*/
|
||||
APICALL bool removeDispatcher(HANDLE handle, const std::string& name);
|
||||
|
||||
/*
|
||||
Adds a notification.
|
||||
|
||||
data has to contain:
|
||||
- text: std::string or const char*
|
||||
- time: uint64_t
|
||||
- color: CColor
|
||||
|
||||
data may contain:
|
||||
- icon: eIcons
|
||||
|
||||
returns: true on success. False otherwise.
|
||||
*/
|
||||
APICALL bool addNotificationV2(HANDLE handle, const std::unordered_map<std::string, std::any>& data);
|
||||
};
|
Reference in New Issue
Block a user