-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconchrc.example
More file actions
61 lines (54 loc) · 981 Bytes
/
conchrc.example
File metadata and controls
61 lines (54 loc) · 981 Bytes
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
-- Database "bugle server" details
host = "core.fort"
database = "bugle"
-- User details
-- the subversion user should always exist
-- as it's created by the django migrations
username = "subversion"
page_size = 42
-- example clock customisation
-- if you want a fuzzy emoji clock uncomment the
-- definition of clock_format_func
-- or write your own fun interpretation of time
-- clock_format_func = function()
-- return emoji_clock()
-- end
hours = {
"🕐",
"🕑",
"🕒",
"🕓",
"🕔",
"🕕",
"🕖",
"🕗",
"🕘",
"🕙",
"🕚",
"🕛",
}
half_hours = {
"🕜",
"🕝",
"🕞",
"🕟",
"🕠",
"🕡",
"🕢",
"🕣",
"🕤",
"🕥",
"🕦",
"🕧",
}
emoji_clock = function()
hour = tonumber(os.date("%H")) % 12
min = tonumber(os.date("%M"))
if min < 15 then
return hours[hour] .. " "
elseif min < 45 then
return half_hours[hour] .. " "
else
return hours[(hour + 1) % 12] .. " "
end
end