feat(config file): add a config file

This commit is contained in:
2025-09-23 22:46:19 -04:00
parent b4715770db
commit 80dde85a2e
11 changed files with 229 additions and 22 deletions

27
include/config.h Normal file
View File

@@ -0,0 +1,27 @@
#pragma once
#define LED_BLINK_TRIGGER_DISABLED 101
/**
* @brief parse the config file
*
* @param path the path to the config file
*/
void parse_config_file(char *path);
/**
* @brief setup the led formula
*/
void setup_led_formula(void);
extern char *battery_status_path;
extern char *battery_power_source;
extern char *led_brightness_path;
extern unsigned int led_blink_trigger_level;
extern char *led_blink_timing_formula;
double led_blink_timing_func(int percent);
extern char *acpi_daemon_socket_path;