aboutsummaryrefslogtreecommitdiff
path: root/notify.h
blob: be79b41a68736671d8ecddb0474cb0660b36c671 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <stdbool.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,
    enum notify_when when, enum notify_urgency urgency);