initial commit

This commit is contained in:
2025-03-31 04:12:41 -05:00
commit 961e0472f5
13 changed files with 614 additions and 0 deletions

8
config.h Normal file
View File

@@ -0,0 +1,8 @@
#include <math.h>
static const char *notification_name = "Event Handler"; /* name to use in notifications */
static const char *battery_dir = "/sys/class/power_supply/BAT1"; /* path to the batteries directory */
static const int blink_start = 15; /* percentage to start blinking at */
const double blink_formula(int x) { /* formula used to set the blinking rate, this function takes in one argument: the battery percentage */
return 1.7 + 18.5 * exp(-0.29 * x);
}