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

Type definitions for settings. More...

#include <stdbool.h>
#include "notification.h"
#include "draw.h"
+ Include dependency graph for settings.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  keyboard_shortcut
 
struct  separator_color_data
 
struct  length
 
struct  position
 
struct  settings
 

Macros

#define LIST_END   (-1)
 
#define ZWLR_LAYER_SHELL_V1_LAYER_ENUM
 
#define ZWLR_LAYER_SURFACE_V1_ANCHOR_ENUM
 

Enumerations

enum  alignment { ALIGN_LEFT , ALIGN_CENTER , ALIGN_RIGHT }
 
enum  sort_type { SORT_TYPE_ID , SORT_TYPE_URGENCY_ASCENDING , SORT_TYPE_URGENCY_DESCENDING , SORT_TYPE_UPDATE }
 
enum  vertical_alignment { VERTICAL_TOP , VERTICAL_CENTER , VERTICAL_BOTTOM }
 
enum  separator_color { SEP_FOREGROUND , SEP_AUTO , SEP_FRAME , SEP_CUSTOM }
 
enum  follow_mode { FOLLOW_NONE , FOLLOW_MOUSE , FOLLOW_KEYBOARD }
 
enum  mouse_action {
  MOUSE_NONE , MOUSE_DO_ACTION , MOUSE_CLOSE_CURRENT , MOUSE_REMOVE_CURRENT ,
  MOUSE_CLOSE_ALL , MOUSE_CONTEXT , MOUSE_CONTEXT_ALL , MOUSE_OPEN_URL ,
  MOUSE_ACTION_END = LIST_END
}
 
enum  zwlr_layer_shell_v1_layer { ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND = 0 , ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM = 1 , ZWLR_LAYER_SHELL_V1_LAYER_TOP = 2 , ZWLR_LAYER_SHELL_V1_LAYER_OVERLAY = 3 }
 
enum  zwlr_layer_surface_v1_anchor { ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP = 1 , ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM = 2 , ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT = 4 , ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT = 8 }
 
enum  origin_values {
  ORIGIN_TOP_LEFT = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT , ORIGIN_TOP_CENTER = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP , ORIGIN_TOP_RIGHT = ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT , ORIGIN_BOTTOM_LEFT = ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM | ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT ,
  ORIGIN_BOTTOM_CENTER = ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM , ORIGIN_BOTTOM_RIGHT = ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM | ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT , ORIGIN_LEFT_CENTER = ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT , ORIGIN_RIGHT_CENTER = ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT ,
  ORIGIN_CENTER = 0
}
 
enum  setting_type {
  TYPE_MIN = 0 , TYPE_INT , TYPE_DOUBLE , TYPE_STRING ,
  TYPE_PATH , TYPE_TIME , TYPE_LIST , TYPE_CUSTOM ,
  TYPE_LENGTH , TYPE_COLOR , TYPE_GRADIENT , TYPE_DEPRECATED ,
  TYPE_MAX = TYPE_DEPRECATED + 1
}
 

Functions

void load_settings (char **const config_paths)
 
void settings_free (struct settings *s)
 

Variables

struct settings settings
 
bool print_notifications
 

Detailed Description

Type definitions for settings.

License
BSD-3-Clause

Definition in file settings.h.

Macro Definition Documentation

◆ LIST_END

#define LIST_END   (-1)

Definition at line 40 of file settings.h.

◆ ZWLR_LAYER_SHELL_V1_LAYER_ENUM

#define ZWLR_LAYER_SHELL_V1_LAYER_ENUM

Definition at line 51 of file settings.h.

◆ ZWLR_LAYER_SURFACE_V1_ANCHOR_ENUM

#define ZWLR_LAYER_SURFACE_V1_ANCHOR_ENUM

Definition at line 62 of file settings.h.

Enumeration Type Documentation

◆ alignment

enum alignment

Definition at line 42 of file settings.h.

◆ follow_mode

enum follow_mode

Definition at line 46 of file settings.h.

◆ mouse_action

enum mouse_action

Definition at line 47 of file settings.h.

◆ origin_values

enum origin_values

Definition at line 83 of file settings.h.

◆ separator_color

enum separator_color

Definition at line 45 of file settings.h.

◆ setting_type

enum setting_type

Definition at line 96 of file settings.h.

◆ sort_type

enum sort_type

Definition at line 43 of file settings.h.

◆ vertical_alignment

enum vertical_alignment

Definition at line 44 of file settings.h.

◆ zwlr_layer_shell_v1_layer

enum zwlr_layer_shell_v1_layer

Definition at line 53 of file settings.h.

◆ zwlr_layer_surface_v1_anchor

Enumerator
ZWLR_LAYER_SURFACE_V1_ANCHOR_TOP 

the top edge of the anchor rectangle

ZWLR_LAYER_SURFACE_V1_ANCHOR_BOTTOM 

the bottom edge of the anchor rectangle

ZWLR_LAYER_SURFACE_V1_ANCHOR_LEFT 

the left edge of the anchor rectangle

ZWLR_LAYER_SURFACE_V1_ANCHOR_RIGHT 

the right edge of the anchor rectangle

Definition at line 63 of file settings.h.

Function Documentation

◆ load_settings()

void load_settings ( char **const config_paths)

Definition at line 265 of file settings.c.

◆ settings_free()

void settings_free ( struct settings * s)

Definition at line 293 of file settings.c.

Variable Documentation

◆ print_notifications

bool print_notifications
extern

Definition at line 32 of file settings.c.

◆ settings

struct settings settings
extern

Definition at line 31 of file settings.c.