config.h file
[smdp.git] / include / config.h
1 #if !defined( CONFIG_H )
2 #define CONFIG_H
3
4 /*
5  * User configuration file
6  * Copyright (C) 2018 Michael Goehler
7  *
8  * This file is part of mdp.
9  *
10  * This program is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22  *
23  */
24
25 // unordered list characters
26 //
27 // you can also override via env vars:
28 // export MDP_LIST_OPEN1="    " MDP_LIST_OPEN2="    " MDP_LIST_OPEN3="    "
29 // export MDP_LIST_HEAD1=" ■  " MDP_LIST_HEAD2=" ●  " MDP_LIST_HEAD3=" ▫  "
30 // or export MDP_LIST_OPEN to override all MDP_LIST_OPENx variables
31 // and similarly for MDP_LIST_HEAD
32 static const char *list_open1 = " |  ";
33 static const char *list_open2 = " |  ";
34 static const char *list_open3 = " |  ";
35 static const char *list_head1 = " +- ";
36 static const char *list_head2 = " +- ";
37 static const char *list_head3 = " +- ";
38
39 #define FADE_DELAY 15000    // micro seconds
40 #define GOTO_SLIDE_DELAY 5  // tenths of seconds
41
42 // colors - you can only set in 8-bit color mode
43 //
44 /* Use the ncurses defined colors, here's a list of them:
45  *      COLOR_BLACK
46  *      COLOR_RED
47  *      COLOR_GREEN
48  *      COLOR_YELLOW
49  *      COLOR_BLUE
50  *      COLOR_MAGENTA
51  *      COLOR_CYAN
52  *      COLOR_WHITE
53  */
54 #define FG_COLOR        COLOR_WHITE
55 #define BG_COLOR        COLOR_BLACK
56 #define TITLE_COLOR     COLOR_YELLOW
57 #define HEADER_COLOR    COLOR_BLUE
58 #define BOLD_COLOR      COLOR_RED
59
60 // keybindings
61 static const int prev_slide_binding[] = {
62     KEY_UP,
63     KEY_LEFT,
64     KEY_PPAGE,
65     8,   // BACKSPACE (ascii)
66     127, // BACKSPACE (xterm)
67     263, // BACKSPACE (getty)
68     'h',
69     'k',
70     0
71 };
72 static const int next_slide_binding[] = {
73     KEY_DOWN,
74     KEY_RIGHT,
75     KEY_NPAGE,
76     '\n', // ENTER
77     ' ',  // SPACE
78     'j',
79     'l',
80     0
81 };
82 static const int first_slide_binding[] = {
83     'g',
84     KEY_HOME,
85     0
86 };
87 static const int last_slide_binding[] = {
88     'G',
89     KEY_END,
90     0
91 };
92 static const int reload_binding[] = {
93     'r',
94     0
95 };
96 static const int quit_binding[] = {
97     'q',
98     0
99 };
100
101 #endif // !defined( CONFIG_H )