Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
settings_data.h File Reference

List of all the valid settings and values. More...

#include <stddef.h>
#include <pango/pango-layout.h>
#include "option_parser.h"
#include "settings.h"
#include "rules.h"
+ Include dependency graph for settings_data.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  string_to_enum_def
 
struct  setting
 

Macros

#define ENUM_END   {NULL, 0}
 

Enumerations

enum  list_type { INVALID_LIST = 0 , MOUSE_LIST = 1 , OFFSET_LIST = 2 , STRING_LIST = 3 }
 

Variables

static const struct rule empty_rule
 
static const struct string_to_enum_def verbosity_enum_data []
 
static const struct string_to_enum_def boolean_enum_data []
 
static const struct string_to_enum_def sort_type_enum_data []
 
static const struct string_to_enum_def horizontal_alignment_enum_data []
 
static const struct string_to_enum_def ellipsize_enum_data []
 
static struct string_to_enum_def follow_mode_enum_data []
 
static const struct string_to_enum_def fullscreen_enum_data []
 
static const struct string_to_enum_def icon_position_enum_data []
 
static const struct string_to_enum_def vertical_alignment_enum_data []
 
static const struct string_to_enum_def markup_mode_enum_data []
 
static const struct string_to_enum_def mouse_action_enum_data []
 
static const struct string_to_enum_def sep_color_enum_data []
 
static const struct string_to_enum_def urgency_enum_data []
 
static const struct string_to_enum_def layer_enum_data []
 
static const struct string_to_enum_def origin_enum_data []
 
static const struct string_to_enum_def corners_enum_data []
 
static const struct setting allowed_settings []
 

Detailed Description

List of all the valid settings and values.

License
BSD-3-Clause

Definition in file settings_data.h.

Macro Definition Documentation

◆ ENUM_END

#define ENUM_END   {NULL, 0}

Definition at line 204 of file settings_data.h.

Enumeration Type Documentation

◆ list_type

enum list_type

Definition at line 197 of file settings_data.h.

Variable Documentation

◆ allowed_settings

const struct setting allowed_settings[]
static

Definition at line 377 of file settings_data.h.

◆ boolean_enum_data

const struct string_to_enum_def boolean_enum_data[]
static
Initial value:
= {
{"True", true },
{"true", true },
{"On", true },
{"on", true },
{"Yes", true },
{"yes", true },
{"1", true },
{"False", false },
{"false", false },
{"Off", false },
{"off", false },
{"No", false },
{"no", false },
{"0", false },
{"n", false },
{"y", false },
{"N", false },
{"Y", true },
ENUM_END,
}

Definition at line 218 of file settings_data.h.

◆ corners_enum_data

const struct string_to_enum_def corners_enum_data[]
static
Initial value:
= {
{ "top-left", C_TOP_LEFT },
{ "top-right", C_TOP_RIGHT },
{ "bottom-left", C_BOT_LEFT },
{ "bottom-right", C_BOT_RIGHT },
{ "left", C_LEFT },
{ "right", C_RIGHT },
{ "bottom", C_BOT },
{ "top", C_TOP },
{ "all", C_ALL },
{ "none", C_NONE },
ENUM_END,
}

Definition at line 363 of file settings_data.h.

◆ ellipsize_enum_data

const struct string_to_enum_def ellipsize_enum_data[]
static
Initial value:
= {
{"start", PANGO_ELLIPSIZE_START },
{"middle", PANGO_ELLIPSIZE_MIDDLE },
{"end", PANGO_ELLIPSIZE_END },
ENUM_END,
}

Definition at line 273 of file settings_data.h.

◆ empty_rule

const struct rule empty_rule
static

Definition at line 146 of file settings_data.h.

◆ follow_mode_enum_data

struct string_to_enum_def follow_mode_enum_data[]
static
Initial value:
= {
{"mouse", FOLLOW_MOUSE },
{"keyboard", FOLLOW_KEYBOARD },
{"none", FOLLOW_NONE },
ENUM_END,
}

Definition at line 280 of file settings_data.h.

◆ fullscreen_enum_data

const struct string_to_enum_def fullscreen_enum_data[]
static
Initial value:
= {
{"show", FS_SHOW },
{"delay", FS_DELAY },
{"pushback", FS_PUSHBACK },
ENUM_END,
}
@ FS_SHOW
Show the message when in fullscreen mode.
@ FS_PUSHBACK
When entering fullscreen mode, push the notification back to waiting.
@ FS_DELAY
Delay the notification until leaving fullscreen mode.

Definition at line 287 of file settings_data.h.

◆ horizontal_alignment_enum_data

const struct string_to_enum_def horizontal_alignment_enum_data[]
static
Initial value:
= {
{"left", PANGO_ALIGN_LEFT },
{"center", PANGO_ALIGN_CENTER },
{"right", PANGO_ALIGN_RIGHT },
ENUM_END,
}

Definition at line 266 of file settings_data.h.

◆ icon_position_enum_data

const struct string_to_enum_def icon_position_enum_data[]
static
Initial value:
= {
{"left", ICON_LEFT },
{"right", ICON_RIGHT },
{"top", ICON_TOP },
{"off", ICON_OFF },
ENUM_END,
}

Definition at line 294 of file settings_data.h.

◆ layer_enum_data

const struct string_to_enum_def layer_enum_data[]
static
Initial value:
= {
{"bottom", ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM },
{"top", ZWLR_LAYER_SHELL_V1_LAYER_TOP },
{"overlay", ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY },
ENUM_END,
}

Definition at line 343 of file settings_data.h.

◆ markup_mode_enum_data

const struct string_to_enum_def markup_mode_enum_data[]
static
Initial value:
= {
{"strip", MARKUP_STRIP },
{"no", MARKUP_NO },
{"full", MARKUP_FULL },
{"yes", MARKUP_FULL },
ENUM_END,
}

Definition at line 309 of file settings_data.h.

◆ mouse_action_enum_data

const struct string_to_enum_def mouse_action_enum_data[]
static
Initial value:
= {
{"none", MOUSE_NONE },
{"do_action", MOUSE_DO_ACTION },
{"close_current", MOUSE_CLOSE_CURRENT },
{"close_all", MOUSE_CLOSE_ALL },
{"context", MOUSE_CONTEXT },
{"context_all", MOUSE_CONTEXT_ALL },
{"open_url", MOUSE_OPEN_URL },
{"remove_current", MOUSE_REMOVE_CURRENT },
ENUM_END,
}

Definition at line 317 of file settings_data.h.

◆ origin_enum_data

const struct string_to_enum_def origin_enum_data[]
static
Initial value:
= {
{ "top-left", ORIGIN_TOP_LEFT },
{ "top-center", ORIGIN_TOP_CENTER },
{ "top-right", ORIGIN_TOP_RIGHT },
{ "bottom-left", ORIGIN_BOTTOM_LEFT },
{ "bottom-center", ORIGIN_BOTTOM_CENTER },
{ "bottom-right", ORIGIN_BOTTOM_RIGHT },
{ "left-center", ORIGIN_LEFT_CENTER },
{ "right-center", ORIGIN_RIGHT_CENTER },
{ "center", ORIGIN_CENTER },
ENUM_END,
}

Definition at line 350 of file settings_data.h.

◆ sep_color_enum_data

const struct string_to_enum_def sep_color_enum_data[]
static
Initial value:
= {
{"auto", SEP_AUTO },
{"foreground", SEP_FOREGROUND },
{"frame", SEP_FRAME },
ENUM_END,
}

Definition at line 329 of file settings_data.h.

◆ sort_type_enum_data

const struct string_to_enum_def sort_type_enum_data[]
static
Initial value:
= {
{"True", SORT_TYPE_URGENCY_DESCENDING },
{"true", SORT_TYPE_URGENCY_DESCENDING },
{"On", SORT_TYPE_URGENCY_DESCENDING },
{"on", SORT_TYPE_URGENCY_DESCENDING },
{"Yes", SORT_TYPE_URGENCY_DESCENDING },
{"yes", SORT_TYPE_URGENCY_DESCENDING },
{"1", SORT_TYPE_URGENCY_DESCENDING },
{"False", SORT_TYPE_ID },
{"false", SORT_TYPE_ID },
{"Off", SORT_TYPE_ID },
{"off", SORT_TYPE_ID },
{"No", SORT_TYPE_ID },
{"no", SORT_TYPE_ID },
{"0", SORT_TYPE_ID },
{"n", SORT_TYPE_ID },
{"y", SORT_TYPE_ID },
{"N", SORT_TYPE_ID },
{"Y", SORT_TYPE_URGENCY_DESCENDING },
{"id", SORT_TYPE_ID},
{"urgency_ascending", SORT_TYPE_URGENCY_ASCENDING },
{"urgency_descending", SORT_TYPE_URGENCY_DESCENDING },
{"update", SORT_TYPE_UPDATE },
ENUM_END,
}

Definition at line 240 of file settings_data.h.

◆ urgency_enum_data

const struct string_to_enum_def urgency_enum_data[]
static
Initial value:
= {
{"low", URG_LOW },
{"normal", URG_NORM },
{"critical", URG_CRIT },
ENUM_END,
}
@ URG_NORM
Normal urgency.
@ URG_CRIT
Critical urgency.
@ URG_LOW
Low urgency.

Definition at line 336 of file settings_data.h.

◆ verbosity_enum_data

const struct string_to_enum_def verbosity_enum_data[]
static
Initial value:
= {
{"critical", G_LOG_LEVEL_CRITICAL },
{"crit", G_LOG_LEVEL_CRITICAL },
{"warning", G_LOG_LEVEL_WARNING },
{"warn", G_LOG_LEVEL_WARNING },
{"message", G_LOG_LEVEL_MESSAGE },
{"mesg", G_LOG_LEVEL_MESSAGE },
{"info", G_LOG_LEVEL_INFO },
{"debug", G_LOG_LEVEL_DEBUG },
{"deb", G_LOG_LEVEL_DEBUG },
ENUM_END,
}

Definition at line 205 of file settings_data.h.

◆ vertical_alignment_enum_data

const struct string_to_enum_def vertical_alignment_enum_data[]
static
Initial value:
= {
{"top", VERTICAL_TOP },
{"center", VERTICAL_CENTER },
{"bottom", VERTICAL_BOTTOM },
ENUM_END,
}

Definition at line 302 of file settings_data.h.