aboutsummaryrefslogtreecommitdiff
path: root/notify.h
diff options
context:
space:
mode:
Diffstat (limited to 'notify.h')
-rw-r--r--notify.h28
1 files changed, 26 insertions, 2 deletions
diff --git a/notify.h b/notify.h
index ce60562f..be79b41a 100644
--- a/notify.h
+++ b/notify.h
@@ -1,6 +1,30 @@
#pragma once
+#include <stdbool.h>
-#include "terminal.h"
+struct terminal;
+
+enum notify_when {
+ NOTIFY_ALWAYS,
+ NOTIFY_UNFOCUSED,
+ NOTIFY_INVISIBLE
+};
+
+enum notify_urgency {
+ NOTIFY_URGENCY_LOW,
+ NOTIFY_URGENCY_NORMAL,
+ NOTIFY_URGENCY_CRITICAL,
+};
+
+struct kitty_notification {
+ char *id;
+ char *title;
+ char *body;
+ enum notify_when when;
+ enum notify_urgency urgency;
+ bool focus;
+ bool report;
+};
void notify_notify(
- const struct terminal *term, const char *title, const char *body);
+ const struct terminal *term, const char *title, const char *body,
+ enum notify_when when, enum notify_urgency urgency);