-
Notifications
You must be signed in to change notification settings - Fork 0
/
rusty-clock.conf.sample
85 lines (73 loc) · 1.96 KB
/
rusty-clock.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- dmarc-reader.conf -*- mode: lua -*-
local M = {}
-- Read the named file in under the specified data directory
-- M.data_directory and return the contents.
function read_file(name)
local f, err = io.open(M.data_directory .. "/" .. name, "r")
if f == nil then
return nil
end
local r = f:read("*a")
f:close()
return r
end
-- set the directory for data and log files
M.data_directory = arg[0]:match("(.*/)") -- dir from configuration file
--M.data_directory = "." -- current directory
--M.data_directory = "/var/db/rusty-clock" -- absolute path
M.socket = "/tmp/clock.socket"
M.width = 480
M.height = 320
--M.days = {"SUN","MON","TUE","WED","THU","FRI","SAT"}
M.days = {"Su日","Mo一","Tu二","We三","Th四","Fr五","Sa六"}
M.fonts = {
time = "Noto Sans:style=bold:size=89",
day = "Noto Sans CJK TC:style=bold:size=60",
date = "Noto Sans CJK:style=bold:size=60",
weather = "Noto Sans CJK TC:style=bold:size=50",
}
M.coordinates = {
time = { x = 2, y = 110},
day = { x = 2, y = 200},
date = { x = 220, y = 200},
weather = { x = 2, y = 300},
}
M.themes = {
early = {
time = "SteelBlue",
day = "DarkBlue",
date = "MidnightBlue",
weather = "SlateBlue",
background = "grey5",
},
morning = {
time = "yellow",
day = "gold",
date = "orange",
weather = "Gold2",
background = "black",
},
afternoon = {
time = "pink",
day = "HotPink",
date = "DeepPink",
weather = "DeepPink2",
background = "black",
},
evening = {
time = "LightCyan",
day = "cyan",
date = "SkyBlue",
weather = "LightBlue",
background = "grey10",
},
unsync = {
time = "black",
day = "grey10",
date = "grey20",
weather = "grey15",
background = "red",
},
}
-- return the complete configuration
return M