mirror of
https://github.com/MalteT/mensa.git
synced 2024-10-22 21:59:17 +02:00
95 lines
2.7 KiB
TOML
95 lines
2.7 KiB
TOML
# ============================================================
|
|
# ================ 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" ]
|