aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.mk
diff options
context:
space:
mode:
Diffstat (limited to 'config.def.mk')
-rw-r--r--config.def.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.def.mk b/config.def.mk
index a01d057..1860aaf 100644
--- a/config.def.mk
+++ b/config.def.mk
@@ -6,6 +6,9 @@ CFLAGS+=-DBATTERY
# set this to the correct path for your current system
CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/energy_full\"
CFLAGS+=-DENERGY_NOW=\"/sys/class/power_supply/BAT0/energy_now\"
+CFLAGS+=-DSTATUS=\"/sys/class/power_supply/BAT0/status\"
+# the string to match when the battery is charging; comment out to disable charging detection
+CFLAGS+=-DCHARGING=\"Charging\\n\"
# possible alternative on some systems
#CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/charge_full\"