feat(build): use meson so I don't end up ripping my hair out
This commit is contained in:
3
config.h
3
config.h
@@ -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);
|
||||
|
Reference in New Issue
Block a user