dunst/rules.h
Yuri D'Elia 431c65fc76 Add 'msg_urgency' as a new filter to match on the urgency.
This patch adds a new filter 'msg_urgency' which _matches_ on the urgency on
the notification.

This allows to configure different notification parameters/scripts to different
urgency levels.
2014-03-06 17:22:08 +01:00

33 lines
715 B
C

/* copyright 2013 Sascha Kruse and contributors (see LICENSE for licensing information) */
#pragma once
#include <glib.h>
#include "dunst.h"
#include "notification.h"
typedef struct _rule_t {
char *name;
/* filters */
char *appname;
char *summary;
char *body;
char *icon;
int msg_urgency;
/* actions */
int timeout;
int urgency;
char *fg;
char *bg;
const char *format;
const char *script;
} rule_t;
extern GSList *rules;
void rule_init(rule_t * r);
void rule_apply(rule_t * r, notification * n);
void rule_apply_all(notification * n);
bool rule_matches_notification(rule_t * r, notification * n);