wmclockmon: properly fix allocating and freeing of `command`, `light_color` and the...
[dockapps.git] / wmclockmon / wmclockmon-config / configfile.h
blob47cffa8c98ab60ed46b5d6e664c3090e5799ef2c
1 /*
2 * Configuration file
3 */
5 #ifndef CONFIGFILE_H
6 #define CONFIGFILE_H
8 char *configfile =
9 "# AUTOGENERATED configuration file for wmmclockmon\n"
10 "# empty lines or lines beginning with # are ignored\n"
11 "# booleans can take the next values : 0 1 true false yes no on off\n"
12 "# and are case insensitive\n"
13 "\n"
14 "# Backlight : boolean\n"
15 "# Default : Off\n"
16 "#\n"
17 "Backlight = %s\n"
18 "\n"
19 "# Color : string (backlight color when backlight is ON)\n"
20 "# Default : #6ec63b\n"
21 "#\n"
22 "Color = %s\n"
23 "\n"
24 "# Command : string (what to do when alarm raises)\n"
25 "# Default : nothing\n"
26 "#\n"
27 "Command = %s\n"
28 "\n"
29 "# MessageCmd : string (what to do when alarm raises and there is a message)\n"
30 "# Default : nothing\n"
31 "#\n"
32 "MessageCmd = %s\n"
33 "\n"
34 "# Blinking enable : boolean\n"
35 "# Default : yes\n"
36 "#\n"
37 "Blink = %s\n"
38 "\n"
39 "# H12 : boolean (12 hour clock)\n"
40 "# Default : false\n"
41 "H12 = %s\n"
42 "\n"
43 "# TimeMode : integer (0: normal clock, 1: internet time, 2: binary clock)\n"
44 "# Default : 0\n"
45 "TimeMode = %d\n"
46 "\n"
47 "# Locale : boolean (use current locale or not)\n"
48 "# Default : Yes\n"
49 "Locale = %s\n"
50 "\n"
51 "# StyleDir : string (name of styles directory)\n"
52 "# Default : nothing\n"
53 "#\n"
54 "StyleDir = %s\n"
55 "\n"
56 "# Style : string (name of style -- without extension)\n"
57 "# Default : nothing\n"
58 "#\n"
59 "Style = %s\n"
60 "\n"
61 "# ShowCal : boolean (display calendar at startup / 00:00)\n"
62 "# Default : no\n"
63 "#\n"
64 "ShowCal = %s\n"
65 "\n"
66 "# CalAlrms : boolean (look for alarms in calendar for today -- see manpage)\n"
67 "# Default : off\n"
68 "#\n"
69 "CalAlrms = %s\n"
70 "\n"
71 "# Alarm : string ([on|off@]HH:MM[-#DAY][.MESSAGE])\n"
72 "# Default : nothing\n"
73 "# on|off boolean describing the state of the alarm\n"
74 "# @ field separator between status and time - DON'T PUT SPACES\n"
75 "# HH:MM time when you want the alarm to be raised\n"
76 "# - field separator between time and day - DON'T PUT SPACES\n"
77 "# #DAY day of the week (1-7)\n"
78 "# . field separator between time or day and the message\n"
79 "# MESSAGE message you wantto be displayed (see MessageCmd) when this\n"
80 "# alarm raises\n"
81 "#\n"
82 "# use as many Alarm options as you want alarms\n"
83 "#\n";
86 /* On@HM-?D?.?M?*/
87 char *alarmline = "Alarm = %s@%s%s%s%s%s\n";
89 #endif