pscand/config/pscand.toml
NotAShelf ffae695240
treewide: set up rustfmt and taplo with custom rules
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I794f9152bb02e3dd91c9738369b94fc66a6a6964
2026-02-19 01:42:46 +03:00

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 }