Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
dunst.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
10
11#ifndef DUNST_DUNST_H
12#define DUNST_DUNST_H
13
14#include <glib.h>
15#include <stdbool.h>
16#include <stdio.h>
17#include <stddef.h>
18
19#include "notification.h"
20
21#define MAX_PAUSE_LEVEL 100
22
27 bool idle;
29};
30
31enum dunst_status_field {
32 S_FULLSCREEN,
33 S_IDLE,
34 S_PAUSE_LEVEL,
35 S_MOUSE_OVER,
36};
37
38extern char **config_paths;
39
45void dunst_status(const enum dunst_status_field field,
46 bool value);
47void dunst_status_int(const enum dunst_status_field field,
48 int value);
49
50struct dunst_status dunst_status_get(void);
51
52void wake_up(void);
53void reload(char **const configs);
54
55int dunst_main(int argc, char *argv[]);
56
57void usage(int exit_status);
58void print_version(void);
59
60gboolean pause_signal(gpointer data);
61gboolean unpause_signal(gpointer data);
62gboolean quit_signal(gpointer data);
63
64#endif
void dunst_status(const enum dunst_status_field field, bool value)
Modify the current status of dunst.
Definition dunst.c:35
Notification type definitions.
bool fullscreen
a fullscreen window is currently focused
Definition dunst.h:25
bool idle
set true if the user is idle
Definition dunst.h:27
int pause_level
current pause level. 0 = all notifications come through, 100 = no notifications come through
Definition dunst.h:26
bool mouse_over
set true if the mouse is over the notification window
Definition dunst.h:28