Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Id4e5a2ffc70efb10ba37c0b203a0ac166a6a6964
49 lines
1.2 KiB
TOML
49 lines
1.2 KiB
TOML
# pscand configuration file
|
|
# Place this at /etc/pscand/pscand.toml or ~/.config/pscand/pscand.toml
|
|
|
|
# Directories to load scanner plugins from
|
|
# Set via PSCAND_SCANNER_DIRS environment variable or configure here
|
|
scanner_dirs = [
|
|
# Examples (uncomment and adjust for your system):
|
|
# "/usr/lib/pscand/scanners",
|
|
# "/var/lib/pscand/scanners",
|
|
"~/.local/share/pscand/scanners",
|
|
]
|
|
|
|
# Where to store log files
|
|
log_dir = "/var/log/pscand"
|
|
|
|
# Number of recent log entries to keep in memory for crash recovery
|
|
ring_buffer_size = 60
|
|
|
|
# Enable logging to systemd journal
|
|
journal_enabled = true
|
|
|
|
# Enable logging to file
|
|
file_enabled = true
|
|
|
|
# Log retention in days
|
|
retention_days = 7
|
|
|
|
# Per-scanner configuration
|
|
[scanners.system]
|
|
enabled = true
|
|
interval_secs = 5 # Override default 1-second interval
|
|
|
|
[scanners.sensor]
|
|
enabled = true
|
|
interval_secs = 10 # Sensors don't change as fast
|
|
|
|
[scanners.power]
|
|
enabled = true
|
|
interval_secs = 30 # Battery status changes slowly
|
|
|
|
[scanners.proc]
|
|
enabled = true
|
|
interval_secs = 5
|
|
|
|
# Example: Custom scanner with extra parameters
|
|
# [scanners.custom]
|
|
# enabled = true
|
|
# interval_secs = 60
|
|
# extra = { custom_param = "value", threshold = 100 }
|