feat(build): use meson so I don't end up ripping my hair out

This commit is contained in:
2025-09-21 14:15:09 -04:00
parent 961e0472f5
commit 6e075bff4a
11 changed files with 102 additions and 89 deletions

View File

@@ -2,6 +2,9 @@
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 char *linefile = "/sys/class/power_supply/ACAD/online"; /* path to the file which tells us if we are online (plugged in) */
static const char *ledfile = "/sys/class/leds/input0::capslock/brightness"; /* path to the file which lights up the led */
static const char *acpid_sock = "/run/acpid.socket"; /* acpid socket file */
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);