-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
94 lines (87 loc) · 2.69 KB
/
config.toml
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
86
87
88
89
90
91
92
93
94
# ============================================================
# ================ Example configuration file ================
# ============================================================
# The entire configuration is optional.
# To specify which file to load, use `--config`
#
# $ mensa --config /path/to/config
#
# If omitted, `$XDG_CONFIG_HOME/mensa/config.toml` or
# `$HOME/.config/mensa/config.toml` (if $XDG_CONFIG_HOME is unset)
# are checked.
#
# All options can also be specified on the command line or in the environment
# 1) CLI flags take precedence over
# 2) ENVIRONMENT VARIABLES, which overwrite
# 3) CONFIG options
# ------------------------------------------------------------
# --------------------- Default Mensa ID ---------------------
# ------------------------------------------------------------
# The default canteen id to query information for.
# If this is unspecified, the id needs to be defined per environment or cli.
#
# CLI: -i, --id ID
# ENVIRONMENT: MENSA_ID
default-canteen-id = 63
# ------------------------------------------------------------
# ------------------------ Price Tags ------------------------
# ------------------------------------------------------------
# Specify which prices to display.
# Choose from:
# - Student
# - Employee
# - Other
#
# CLI: --price
# ENVIRONMENT: MENSA_PRICES
price-tags = [ "Student" ]
# ------------------------------------------------------------
# -------------------------- Filter --------------------------
# ------------------------------------------------------------
# Filter the meals by tags or categories.
#
# A meal will be displayed if either:
# - No `allow` is defined and no `deny` matches, or
# - Any `allow` matches and no `deny` does.
[filter.tag]
# These are tags
#
# CLI: --allow-tag
# ENVIRONMENT: MENSA_FILTER_TAG_ALLOW
add = [ "Vegan", "Vegetarian" ]
#
# CLI: --deny-tag
# ENVIRONMENT: MENSA_FILTER_TAG_DENY
sub = [ "Fish", "Cow", "Pig", "Poultry" ]
[filter.category]
# These are regexes
#
# CLI: --allow-category
# ENVIRONMENT: MENSA_FILTER_CATEGORY_ALLOW
add = [ ]
#
# CLI: --deny-category
# ENVIRONMENT: MENSA_FILTER_CATEGORY_DENY
sub = [ "(?i)smoothie" ]
# ------------------------------------------------------------
# ------------------------ Highlights ------------------------
# ------------------------------------------------------------
# Highlight meals special to you!
#
# Works the same way FILTERs do.
[favs.tag]
# CLI: --hl-tag
# ENVIRONMENT: MENSA_HL_TAG_ALLOW
add = [ "Vegan" ]
#
# CLI: --no-hl-tag
# ENVIRONMENT: MENSA_HL_TAG_DENY
sub = []
[favs.category]
# CLI: --hl-category
# ENVIRONMENT: MENSA_HL_CATEGORY_ALLOW
add = []
#
# CLI: --no-hl-category
# ENVIRONMENT: MENSA_HL_CATEGORY_DENY
sub = [ "Salat" ]